qamnrzmf.mdl
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:110k
- Model {
- Name "qamnrzmf"
- Version 5.0
- SaveDefaultBlockParams on
- SampleTimeColors off
- LibraryLinkDisplay "none"
- WideLines off
- ShowLineDimensions off
- ShowPortDataTypes off
- ShowLoopsOnError on
- IgnoreBidirectionalLines off
- ShowStorageClass off
- ExecutionOrder off
- RecordCoverage off
- CovPath "/"
- CovSaveName "covdata"
- CovMetricSettings "dw"
- CovNameIncrementing off
- CovHtmlReporting on
- covSaveCumulativeToWorkspaceVar on
- CovSaveSingleToWorkspaceVar on
- CovCumulativeVarName "covCumulativeData"
- CovCumulativeReport off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- MinMaxOverflowArchiveMode "Overwrite"
- BlockNameDataTip off
- BlockParametersDataTip off
- BlockDescriptionStringDataTip off
- ToolBar on
- StatusBar on
- BrowserShowLibraryLinks off
- BrowserLookUnderMasks off
- CloseFcn "closemodcross"
- Created "Wed Jul 25 16:28:19 2001"
- Creator "gerhard"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- LastModifiedBy "bauch"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Sat Aug 30 14:46:15 2003"
- ModelVersionFormat "1.%<AutoIncrement:69>"
- ConfigurationManager "none"
- SimParamPage "Solver"
- LinearizationMsg "none"
- Profile off
- ParamWorkspaceSource "MATLABWorkspace"
- AccelSystemTargetFile "accel.tlc"
- AccelTemplateMakefile "accel_default_tmf"
- AccelMakeCommand "make_rtw"
- TryForcingSFcnDF off
- ExtModeMexFile "ext_comm"
- ExtModeBatchMode off
- ExtModeTrigType "manual"
- ExtModeTrigMode "normal"
- ExtModeTrigPort "1"
- ExtModeTrigElement "any"
- ExtModeTrigDuration 1000
- ExtModeTrigHoldOff 0
- ExtModeTrigDelay 0
- ExtModeTrigDirection "rising"
- ExtModeTrigLevel 0
- ExtModeArchiveMode "off"
- ExtModeAutoIncOneShot off
- ExtModeIncDirWhenArm off
- ExtModeAddSuffixToVar off
- ExtModeWriteAllDataToWs off
- ExtModeArmWhenConnect on
- ExtModeSkipDownloadWhenConnect off
- ExtModeLogAll on
- ExtModeAutoUpdateStatusClock off
- BufferReuse on
- RTWExpressionDepthLimit 5
- SimulationMode "normal"
- Solver "ode45"
- SolverMode "Auto"
- StartTime "0.0"
- StopTime "999999"
- MaxOrder 5
- MaxStep "0.01"
- MinStep "0.00001"
- MaxNumMinSteps "-1"
- InitialStep "auto"
- FixedStep "auto"
- RelTol "1e-6"
- AbsTol "1e-6"
- OutputOption "RefineOutputTimes"
- OutputTimes "[]"
- Refine "1"
- LoadExternalInput off
- ExternalInput "[t, u]"
- LoadInitialState off
- InitialState "xInitial"
- SaveTime off
- TimeSaveName "tout"
- SaveState off
- StateSaveName "xout"
- SaveOutput off
- OutputSaveName "yout"
- SaveFinalState off
- FinalStateName "xFinal"
- SaveFormat "Array"
- Decimation "1"
- LimitDataPoints on
- MaxDataPoints "1000"
- SignalLoggingName "sigsOut"
- ConsistencyChecking "none"
- ArrayBoundsChecking "none"
- AlgebraicLoopMsg "warning"
- BlockPriorityViolationMsg "warning"
- MinStepSizeMsg "warning"
- InheritedTsInSrcMsg "warning"
- DiscreteInheritContinuousMsg "warning"
- MultiTaskRateTransMsg "error"
- SingleTaskRateTransMsg "none"
- CheckForMatrixSingularity "none"
- IntegerOverflowMsg "warning"
- Int32ToFloatConvMsg "warning"
- ParameterDowncastMsg "error"
- ParameterOverflowMsg "error"
- ParameterPrecisionLossMsg "warning"
- UnderSpecifiedDataTypeMsg "none"
- UnnecessaryDatatypeConvMsg "none"
- VectorMatrixConversionMsg "none"
- InvalidFcnCallConnMsg "error"
- SignalLabelMismatchMsg "none"
- UnconnectedInputMsg "warning"
- UnconnectedOutputMsg "warning"
- UnconnectedLineMsg "warning"
- SfunCompatibilityCheckMsg "none"
- RTWInlineParameters off
- BlockReductionOpt off
- BooleanDataType off
- ConditionallyExecuteInputs on
- ParameterPooling on
- OptimizeBlockIOStorage on
- ZeroCross on
- AssertionControl "UseLocalSettings"
- ProdHWDeviceType "Microprocessor"
- ProdHWWordLengths "8,16,32,32"
- RTWSystemTargetFile "grt.tlc"
- RTWTemplateMakefile "grt_default_tmf"
- RTWMakeCommand "make_rtw"
- RTWGenerateCodeOnly off
- RTWRetainRTWFile off
- TLCProfiler off
- TLCDebug off
- TLCCoverage off
- TLCAssertion off
- BlockDefaults {
- Orientation "right"
- ForegroundColor "black"
- BackgroundColor "white"
- DropShadow off
- NamePlacement "normal"
- FontName "Helvetica"
- FontSize 10
- FontWeight "normal"
- FontAngle "normal"
- ShowName on
- }
- BlockParameterDefaults {
- Block {
- BlockType Abs
- SaturateOnIntegerOverflow on
- ZeroCross on
- }
- Block {
- BlockType Clock
- DisplayTime off
- }
- Block {
- BlockType Constant
- Value "1"
- VectorParams1D on
- ShowAdditionalParam off
- OutDataTypeMode "Inherit from 'Constant value'"
- OutDataType "sfix(16)"
- ConRadixGroup "Use specified scaling"
- OutScaling "2^0"
- }
- Block {
- BlockType Fcn
- Expr "sin(u[1])"
- }
- Block {
- BlockType Gain
- Gain "1"
- Multiplication "Element-wise(K.*u)"
- ShowAdditionalParam off
- ParameterDataTypeMode "Same as input"
- ParameterDataType "sfix(16)"
- ParameterScalingMode "Best Precision: Matrix-wise"
- ParameterScaling "2^0"
- OutDataTypeMode "Same as input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- }
- Block {
- BlockType Inport
- Port "1"
- PortDimensions "-1"
- SampleTime "-1"
- ShowAdditionalParam off
- LatchInput off
- DataType "auto"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- SignalType "auto"
- SamplingMode "auto"
- Interpolate on
- }
- Block {
- BlockType Mux
- Inputs "4"
- DisplayOption "none"
- }
- Block {
- BlockType Outport
- Port "1"
- OutputWhenDisabled "held"
- InitialOutput "[]"
- }
- Block {
- BlockType Product
- Inputs "2"
- Multiplication "Element-wise(.*)"
- ShowAdditionalParam off
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- }
- Block {
- BlockType RandomNumber
- Mean "0"
- Variance "1"
- Seed "0"
- SampleTime "-1"
- VectorParams1D on
- }
- Block {
- BlockType Reference
- }
- Block {
- BlockType Scope
- Floating off
- ModelBased off
- TickLabels "OneTimeTick"
- ZoomMode "on"
- Grid "on"
- TimeRange "auto"
- YMin "-5"
- YMax "5"
- SaveToWorkspace off
- SaveName "ScopeData"
- LimitDataPoints on
- MaxDataPoints "5000"
- Decimation "1"
- SampleInput off
- SampleTime "0"
- }
- Block {
- BlockType "S-Function"
- FunctionName "system"
- PortCounts "[]"
- SFunctionModules "''"
- }
- Block {
- BlockType StateSpace
- A "1"
- B "1"
- C "1"
- D "1"
- X0 "0"
- AbsoluteTolerance "auto"
- Realization "auto"
- }
- Block {
- BlockType Step
- Time "1"
- Before "0"
- After "1"
- SampleTime "-1"
- VectorParams1D on
- ZeroCross on
- }
- Block {
- BlockType SubSystem
- ShowPortLabels on
- Permissions "ReadWrite"
- RTWSystemCode "Auto"
- RTWFcnNameOpts "Auto"
- RTWFileNameOpts "Auto"
- SimViewingDevice off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- }
- Block {
- BlockType Sum
- IconShape "rectangular"
- Inputs "++"
- ShowAdditionalParam off
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- }
- Block {
- BlockType Switch
- Criteria "u2 >= Threshold"
- Threshold "0"
- ShowAdditionalParam off
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- ZeroCross on
- }
- Block {
- BlockType ZeroOrderHold
- SampleTime "1"
- }
- }
- AnnotationDefaults {
- HorizontalAlignment "center"
- VerticalAlignment "middle"
- ForegroundColor "black"
- BackgroundColor "white"
- DropShadow off
- FontName "Helvetica"
- FontSize 10
- FontWeight "normal"
- FontAngle "normal"
- }
- LineDefaults {
- FontName "Helvetica"
- FontSize 9
- FontWeight "normal"
- FontAngle "normal"
- }
- System {
- Name "qamnrzmf"
- Location [7, 153, 1016, 431]
- Open on
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- ReportName "simulink-default.rpt"
- Block {
- BlockType Reference
- Name "Channel"
- Ports [1, 1]
- Position [470, 84, 550, 126]
- SourceBlock "librnew/Channel"
- SourceType "AWGN channel, fixed parameter"
- m "0"
- variance "0.001"
- s "12345"
- }
- Block {
- BlockType SubSystem
- Name "Error rate"
- Ports [2]
- Position [465, 215, 545, 255]
- Orientation "down"
- CopyFcn "sbiterr([],[],[],'CopyBlock')"
- DeleteFcn "sbiterr([],[],[],'DeleteBlock')"
- LoadFcn "sbiterr([],[],[],'LoadBlock')"
- StartFcn "sbiterr([],[],[],'Start')"
- StopFcn "sbiterr([],[],[],'Stop')"
- NameChangeFcn "sbiterr([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Symbol/bit error counter"
- MaskDescription "Use the input data from the 1st port as the ref"
- "erence signal to detect the number of errors and error rate of the 2nd signal"
- "."
- MaskHelp "The signal from the first port must be a scalar"
- ". The second input port can be a vector with a delay to the first port signal"
- ". The comparison happens only at the sampling point."
- MaskPromptString "Bit per symbol:|Number of digits on display:|De"
- "lay between 1st port and 2nd port:|Sample time (sec):"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskInitialization "K=@1;num_lin=@2;TDelay=@3;Sample=@4;"
- MaskDisplay "disp('Error\nmeter')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "4|10|1|1"
- System {
- Name "Error rate"
- Location [255, 368, 509, 510]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [15, 45, 35, 65]
- }
- Block {
- BlockType Inport
- Name "in_2"
- Position [15, 60, 35, 80]
- Port "2"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [65, 46, 100, 79]
- Inputs "2"
- }
- Block {
- BlockType "S-Function"
- Name "S-function"
- Ports [1]
- Position [130, 52, 195, 78]
- FunctionName "sbiterr"
- Parameters "num_lin, K, TDelay, Sample"
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "S-function"
- DstPort 1
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "in_2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Receiver"
- Ports [1, 1]
- Position [650, 62, 725, 148]
- ShowPortLabels off
- TreatAsAtomicUnit off
- System {
- Name "Receiver"
- Location [-52, 128, 944, 417]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "noisyn16-QAMnsignal"
- Position [25, 145, 45, 165]
- }
- Block {
- BlockType Reference
- Name "16-QAM"
- Ports [2, 1]
- Position [920, 125, 975, 180]
- SourceBlock "simulink3/Functionsn& Tables/Direct Look-U"
- "pnTable (n-D)"
- SourceType "LookupNDDirect"
- maskTabDims "2"
- explicitNumDims "1"
- outDims "Element"
- tabIsInput "off"
- mxTable "[0 1 2 3; 4 5 6 7; 8 9 10 11; 12 13 14 15]"
- clipFlag "Warning"
- }
- Block {
- BlockType SubSystem
- Name "4-ASK demap"
- Ports [1, 1]
- Position [795, 109, 865, 151]
- TreatAsAtomicUnit off
- MaskType "MASK demapping"
- MaskDescription "Reverse the MASK mapping processnConvert ["
- "-1 1] analog signal to [0, M-1] symbols."
- MaskHelp "This block demaps a MASK mapped signal back"
- " to digit symbols. You can place this block after a amplitude demodulation bl"
- "ock. The input of this block is an analog signal in the range [-1, 1]. The de"
- "modulation decides the closest integer fitting in [0,M-1] range. When the inp"
- "ut symbol interval is a two-elements vector, the second element is offset. Th"
- "e default offset value is 0."
- MaskPromptString "M-ary number (digit integers in ranger [0, "
- "M-1]):|Output symbol interval and offset (sec):"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "N=@1;td=@2;"
- MaskInitialization "Ac=1;sft=[0:N-1]*Ac*2/(N-1)-Ac;"
- MaskDisplay "disp('MASK\ndemapping')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "4|[1, .9]"
- System {
- Name "4-ASK demap"
- Location [617, 158, 1115, 458]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [40, 30, 60, 50]
- }
- Block {
- BlockType Abs
- Name "Abs"
- Position [245, 37, 280, 63]
- }
- Block {
- BlockType "S-Function"
- Name "Minimum"
- Ports [1, 1]
- Position [325, 40, 380, 60]
- FunctionName "arymimai"
- Parameters "'min'"
- }
- Block {
- BlockType Constant
- Name "Shift key"
- Position [125, 88, 145, 112]
- Value "sft"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [190, 33, 210, 62]
- Inputs "+-"
- }
- Block {
- BlockType ZeroOrderHold
- Name "Zero-OrdernHold"
- Position [95, 24, 130, 56]
- SampleTime "td"
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [410, 40, 430, 60]
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Zero-OrdernHold"
- DstPort 1
- }
- Line {
- SrcBlock "Abs"
- SrcPort 1
- DstBlock "Minimum"
- DstPort 1
- }
- Line {
- SrcBlock "Zero-OrdernHold"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 1
- }
- Line {
- SrcBlock "Minimum"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "Shift key"
- SrcPort 1
- Points [15, 0; 0, -45]
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Abs"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "4-ASK demap1"
- Ports [1, 1]
- Position [800, 174, 870, 216]
- TreatAsAtomicUnit off
- MaskType "MASK demapping"
- MaskDescription "Reverse the MASK mapping processnConvert ["
- "-1 1] analog signal to [0, M-1] symbols."
- MaskHelp "This block demaps a MASK mapped signal back"
- " to digit symbols. You can place this block after a amplitude demodulation bl"
- "ock. The input of this block is an analog signal in the range [-1, 1]. The de"
- "modulation decides the closest integer fitting in [0,M-1] range. When the inp"
- "ut symbol interval is a two-elements vector, the second element is offset. Th"
- "e default offset value is 0."
- MaskPromptString "M-ary number (digit integers in ranger [0, "
- "M-1]):|Output symbol interval and offset (sec):"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "N=@1;td=@2;"
- MaskInitialization "Ac=1;sft=[0:N-1]*Ac*2/(N-1)-Ac;"
- MaskDisplay "disp('MASK\ndemapping')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "4|[1, .9]"
- System {
- Name "4-ASK demap1"
- Location [617, 158, 1115, 458]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [40, 30, 60, 50]
- }
- Block {
- BlockType Abs
- Name "Abs"
- Position [245, 37, 280, 63]
- }
- Block {
- BlockType "S-Function"
- Name "Minimum"
- Ports [1, 1]
- Position [325, 40, 380, 60]
- FunctionName "arymimai"
- Parameters "'min'"
- }
- Block {
- BlockType Constant
- Name "Shift key"
- Position [125, 88, 145, 112]
- Value "sft"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [190, 33, 210, 62]
- Inputs "+-"
- }
- Block {
- BlockType ZeroOrderHold
- Name "Zero-OrdernHold"
- Position [95, 24, 130, 56]
- SampleTime "td"
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [410, 40, 430, 60]
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Zero-OrdernHold"
- DstPort 1
- }
- Line {
- SrcBlock "Abs"
- SrcPort 1
- DstBlock "Minimum"
- DstPort 1
- }
- Line {
- SrcBlock "Zero-OrdernHold"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 1
- }
- Line {
- SrcBlock "Minimum"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "Shift key"
- SrcPort 1
- Points [15, 0; 0, -45]
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Abs"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Clock
- Name "Clock"
- Position [145, 140, 165, 160]
- ShowName off
- Decimation "10"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [185, 119, 265, 141]
- ShowName off
- Expr "2*cos(4*pi*u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [185, 159, 265, 181]
- ShowName off
- Expr "-2*sin(4*pi*u)"
- }
- Block {
- BlockType "S-Function"
- Name "Integrate and Dumpn"
- Ports [1, 1]
- Position [425, 68, 505, 112]
- FunctionName "schdint"
- Parameters "td, ts, limit"
- MaskType "Scheduled reset integration"
- MaskDescription "Reset the state to be zero(s) at thensched"
- "uled reset sample point."
- MaskHelp "This block resets the state(s) to be zero(s"
- ") at the reset time points. The reset interval can be a two-element vector wi"
- "th the second element as offset. The computation sample time must be smaller "
- "than the reset interval. The block resets the state value to be the remainder"
- " of the state divided by the modulo bound when the absolute value of the stat"
- "e is larger than the modulo bound."
- MaskPromptString "Scheduled reset time interval and offset (s"
- "ec):|Computation sample time and offset (sec):|Modulo bound:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskInitialization "td=@1;ts=@2;limit=@3;"
- MaskDisplay "disp('Scheduled\nreset-int')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1|.01|999"
- }
- Block {
- BlockType "S-Function"
- Name "Integrate and Dump_"
- Ports [1, 1]
- Position [425, 203, 505, 247]
- FunctionName "schdint"
- Parameters "td, ts, limit"
- MaskType "Scheduled reset integration"
- MaskDescription "Reset the state to be zero(s) at thensched"
- "uled reset sample point."
- MaskHelp "This block resets the state(s) to be zero(s"
- ") at the reset time points. The reset interval can be a two-element vector wi"
- "th the second element as offset. The computation sample time must be smaller "
- "than the reset interval. The block resets the state value to be the remainder"
- " of the state divided by the modulo bound when the absolute value of the stat"
- "e is larger than the modulo bound."
- MaskPromptString "Scheduled reset time interval and offset (s"
- "ec):|Computation sample time and offset (sec):|Modulo bound:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskInitialization "td=@1;ts=@2;limit=@3;"
- MaskDisplay "disp('Scheduled\nreset-int')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1|.01|999"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [300, 74, 330, 101]
- ShowName off
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [295, 213, 325, 237]
- ShowName off
- }
- Block {
- BlockType SubSystem
- Name "close receiver"
- Ports []
- Position [790, 20, 925, 46]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "closqamr"
- FontSize 12
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "close"
- MaskDisplay "disp('close receiver')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "close receiver"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType SubSystem
- Name "noise variance"
- Ports []
- Position [19, 240, 125, 264]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "setnoise"
- FontSize 12
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "noise"
- MaskDisplay "disp('Noise variance')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "noise variance"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Scope
- Name "r(t)"
- Ports [1]
- Position [60, 70, 90, 100]
- Orientation "up"
- Location [320, 340, 960, 440]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "receiver diagrams"
- Ports [2]
- Position [685, 15, 740, 55]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "2D-Diagrams"
- MaskDescription "Eye pattern, signal space trajectory and sc"
- "atter plot"
- MaskPromptString "Plot start time:|Samples per time slot (2*T"
- "):|Decision offset:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskVariables "starttime=@1;anzahl=@2;offset=@3;"
- MaskInitialization " [x, y] = srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y)"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "0|40|0"
- System {
- Name "receiver diagrams"
- Location [567, 427, 979, 720]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Inphase"
- Position [30, 25, 50, 45]
- }
- Block {
- BlockType Inport
- Name "Quadratur"
- Position [30, 80, 50, 100]
- Port "2"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [90, 125, 110, 145]
- Orientation "up"
- ShowName off
- Value "Inf"
- }
- Block {
- BlockType Constant
- Name "Constant0"
- Position [190, 125, 210, 145]
- Orientation "up"
- ShowName off
- Value "0"
- }
- Block {
- BlockType SubSystem
- Name "Inphase eye patternnreceiver"
- Ports [1]
- Position [305, 12, 360, 48]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2"
- "/anzahl"
- System {
- Name "Inphase eye patternnreceiver"
- Location [121, 409, 416, 595]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [230, 21, 265, 54]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [230, 76, 265, 109]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux2"
- Ports [2, 1]
- Position [230, 146, 265, 179]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux3"
- Ports [2, 1]
- Position [230, 211, 265, 244]
- Inputs "2"
- }
- Block {
- BlockType SubSystem
- Name "Quadrature eye patternnreceiver"
- Ports [1]
- Position [305, 77, 360, 113]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2"
- "/anzahl"
- System {
- Name "Quadrature eye patternnreceiver"
- Location [121, 409, 416, 595]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Scatter plotnreceiver"
- Ports [1]
- Position [305, 213, 360, 247]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 off"
- "set]"
- System {
- Name "Scatter plotnreceiver"
- Location [165, 242, 460, 428]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Step
- Name "Step input"
- Position [30, 125, 50, 145]
- Time "starttime"
- SampleTime "1"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [130, 29, 155, 61]
- Threshold "1"
- }
- Block {
- BlockType Switch
- Name "Switch1"
- Position [130, 84, 155, 116]
- Threshold "1"
- }
- Block {
- BlockType SubSystem
- Name "Trajectory nreceiver"
- Ports [1]
- Position [305, 157, 360, 193]
- CopyFcn "eyediasi([],[],[],'CopyBlock')"
- DeleteFcn "eyediasi([],[],[],'DeleteBlock')"
- LoadFcn "eyediasi([],[],[],'LoadBlock')"
- StartFcn "eyediasi([],[],[],'Start')"
- StopFcn "eyediasi([],[],[],'Stop')"
- NameChangeFcn "eyediasi([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram/scatternpl"
- "ot/x-y plot with the rising edge of the second input as the decision line."
- MaskHelp "This plot opens one, two, or three plot"
- "s by assigning the line type parameters. The scatter plot point is selected b"
- "y the rising edge of a trigger signal. A decision line is drawn at the rising"
- " edge of the trigger signal."
- MaskPromptString "Eye-pattern plot time frame:|Lower and "
- "upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-ty"
- "pe for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for"
- " no plot):|Line-type for x-y plot (0 for no plot):"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon"
- "(0,25,get_param(gcb,'orientation'),2);"
- MaskDisplay "plot(0,0,100,100,x,y,v,w);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
- System {
- Name "Trajectory nreceiver"
- Location [165, 242, 460, 428]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [15, 55, 35, 75]
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [15, 110, 45, 140]
- Value "0"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [65, 70, 100, 105]
- Inputs "2"
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyediasi"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- Points [5, 0; 0, 15]
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, 110]
- Branch {
- Points [0, 65]
- DstBlock "Mux3"
- DstPort 1
- }
- Branch {
- DstBlock "Mux2"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Switch1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Mux1"
- DstPort 2
- }
- Branch {
- Points [0, 70]
- Branch {
- Points [0, 65]
- DstBlock "Mux3"
- DstPort 2
- }
- Branch {
- DstBlock "Mux2"
- DstPort 2
- }
- }
- }
- Line {
- SrcBlock "Constant0"
- SrcPort 1
- Points [0, -35]
- Branch {
- DstBlock "Mux1"
- DstPort 1
- }
- Branch {
- Points [0, -55]
- DstBlock "Mux"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Quadratur"
- SrcPort 1
- DstBlock "Switch1"
- DstPort 1
- }
- Line {
- SrcBlock "Inphase"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Step input"
- SrcPort 1
- Points [20, 0; 0, -35]
- Branch {
- Points [0, -55]
- DstBlock "Switch"
- DstPort 2
- }
- Branch {
- DstBlock "Switch1"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [0, -10]
- Branch {
- Points [0, -55]
- DstBlock "Switch"
- DstPort 3
- }
- Branch {
- DstBlock "Switch1"
- DstPort 3
- }
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- DstBlock "Quadrature eye patternnreceiver"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [20, 0]
- DstBlock "Inphase eye patternnreceiver"
- DstPort 1
- }
- Line {
- SrcBlock "Mux3"
- SrcPort 1
- DstBlock "Scatter plotnreceiver"
- DstPort 1
- }
- Line {
- SrcBlock "Mux2"
- SrcPort 1
- Points [20, 0]
- DstBlock "Trajectory nreceiver"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Scope
- Name "s_rc(t)"
- Ports [1]
- Position [540, 20, 570, 50]
- Orientation "up"
- Location [0, 540, 640, 640]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "s_rs(t)"
- Ports [1]
- Position [540, 155, 570, 185]
- Orientation "up"
- Location [640, 540, 1280, 640]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "thresholdndetector"
- Ports [1, 1]
- Position [700, 72, 730, 108]
- ShowPortLabels off
- TreatAsAtomicUnit off
- System {
- Name "thresholdndetector"
- Location [495, 247, 855, 368]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [30, 15, 50, 35]
- }
- Block {
- BlockType Constant
- Name "Constant2"
- Position [35, 65, 55, 85]
- Value "1/3"
- }
- Block {
- BlockType Constant
- Name "Constant3"
- Position [205, 70, 225, 90]
- Value "1/3"
- }
- Block {
- BlockType "S-Function"
- Name "Quantizer"
- Ports [1, 1]
- Position [160, 22, 190, 48]
- FunctionName "quantize"
- Parameters "q"
- MaskType "Quantizer"
- MaskDescription "Discretizes input at given interval."
- MaskHelp "Quantizes input in given intervals. "
- MaskPromptString "Quantization interval:"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskInitialization "q = @1;"
- MaskDisplay "plot([-4,4],[0,0],[0,0],[-4,4],[-3,-2,-"
- "2,-1,-1,0,0,1,1,2,2,3,3,4]-0.5,[-3,-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3])"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "2/3"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [260, 29, 280, 56]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [90, 19, 110, 46]
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [315, 35, 335, 55]
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 1
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Quantizer"
- DstPort 1
- }
- Line {
- SrcBlock "Constant2"
- SrcPort 1
- Points [10, 0; 0, -35]
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "Quantizer"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Constant3"
- SrcPort 1
- Points [5, 0; 0, -30]
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "thresholdndetector_"
- Ports [1, 1]
- Position [700, 207, 730, 243]
- ShowPortLabels off
- TreatAsAtomicUnit off
- System {
- Name "thresholdndetector_"
- Location [495, 247, 855, 368]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [30, 15, 50, 35]
- }
- Block {
- BlockType Constant
- Name "Constant2"
- Position [35, 65, 55, 85]
- Value "1/3"
- }
- Block {
- BlockType Constant
- Name "Constant3"
- Position [205, 70, 225, 90]
- Value "1/3"
- }
- Block {
- BlockType "S-Function"
- Name "Quantizer"
- Ports [1, 1]
- Position [160, 22, 190, 48]
- FunctionName "quantize"
- Parameters "q"
- MaskType "Quantizer"
- MaskDescription "Discretizes input at given interval."
- MaskHelp "Quantizes input in given intervals. "
- MaskPromptString "Quantization interval:"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskInitialization "q = @1;"
- MaskDisplay "plot([-4,4],[0,0],[0,0],[-4,4],[-3,-2,-"
- "2,-1,-1,0,0,1,1,2,2,3,3,4]-0.5,[-3,-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3])"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "2/3"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [260, 29, 280, 56]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [90, 19, 110, 46]
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [315, 35, 335, 55]
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "Constant3"
- SrcPort 1
- Points [5, 0; 0, -30]
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Quantizer"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Constant2"
- SrcPort 1
- Points [10, 0; 0, -35]
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Quantizer"
- DstPort 1
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Scope
- Name "v(t)"
- Ports [1]
- Position [990, 70, 1020, 100]
- Orientation "up"
- Location [484, 622, 1118, 866]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-15"
- YMax "15"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "v_c(t)"
- Ports [1]
- Position [810, 55, 840, 85]
- Location [343, 490, 983, 590]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "v_s(t)"
- Ports [1]
- Position [795, 240, 825, 270]
- Location [63, 225, 703, 325]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "x_c(t)"
- Ports [1]
- Position [350, 20, 380, 50]
- Orientation "up"
- Location [0, 440, 640, 540]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "x_s(t)"
- Ports [1]
- Position [350, 155, 380, 185]
- Orientation "up"
- Location [640, 440, 1280, 540]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType Outport
- Name "detectednsymbols"
- Position [1045, 145, 1065, 165]
- }
- Line {
- SrcBlock "Clock"
- SrcPort 1
- Points [0, 0]
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- Branch {
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [30, 0]
- Branch {
- DstBlock "Integrate and Dumpn"
- DstPort 1
- }
- Branch {
- DstBlock "x_c(t)"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- Points [35, 0]
- Branch {
- DstBlock "Integrate and Dump_"
- DstPort 1
- }
- Branch {
- DstBlock "x_s(t)"
- DstPort 1
- }
- }
- Line {
- SrcBlock "noisyn16-QAMnsignal"
- SrcPort 1
- Points [25, 0]
- Branch {
- DstBlock "r(t)"
- DstPort 1
- }
- Branch {
- Points [45, 0]
- Branch {
- Points [0, -75]
- DstBlock "Product"
- DstPort 1
- }
- Branch {
- Points [0, 75]
- DstBlock "Product1"
- DstPort 2
- }
- }
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [10, 0]
- DstBlock "Product1"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [10, 0; 0, -35]
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Integrate and Dumpn"
- SrcPort 1
- Points [0, 0]
- Branch {
- Points [45, 0]
- DstBlock "s_rc(t)"
- DstPort 1
- }
- Branch {
- Points [120, 0]
- Branch {
- Points [0, -65]
- DstBlock "receiver diagrams"
- DstPort 1
- }
- Branch {
- DstBlock "thresholdndetector"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Integrate and Dump_"
- SrcPort 1
- Points [0, 0]
- Branch {
- Points [45, 0]
- DstBlock "s_rs(t)"
- DstPort 1
- }
- Branch {
- Points [145, 0]
- Branch {
- Points [0, -180]
- DstBlock "receiver diagrams"
- DstPort 2
- }
- Branch {
- DstBlock "thresholdndetector_"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "16-QAM"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- DstBlock "detectednsymbols"
- DstPort 1
- }
- Branch {
- DstBlock "v(t)"
- DstPort 1
- }
- }
- Line {
- SrcBlock "thresholdndetector"
- SrcPort 1
- Points [30, 0]
- Branch {
- Points [30, 0]
- DstBlock "v_c(t)"
- DstPort 1
- }
- Branch {
- Points [0, 40]
- DstBlock "4-ASK demap"
- DstPort 1
- }
- }
- Line {
- SrcBlock "thresholdndetector_"
- SrcPort 1
- Points [30, 0]
- Branch {
- Points [15, 0]
- DstBlock "v_s(t)"
- DstPort 1
- }
- Branch {
- Points [0, -30]
- DstBlock "4-ASK demap1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "4-ASK demap"
- SrcPort 1
- Points [20, 0; 0, 10]
- DstBlock "16-QAM"
- DstPort 1
- }
- Line {
- SrcBlock "4-ASK demap1"
- SrcPort 1
- Points [15, 0; 0, -30]
- DstBlock "16-QAM"
- DstPort 2
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Transmitter"
- Ports [0, 4]
- Position [200, 100, 275, 190]
- ShowPortLabels off
- TreatAsAtomicUnit off
- System {
- Name "Transmitter"
- Location [25, 144, 1037, 494]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType "S-Function"
- Name "16 QAM"
- Ports [2, 1]
- Position [165, 140, 220, 195]
- AncestorBlock "simulink3/Functionsn& Tables/Direct Look-U"
- "pnTable (n-D)"
- FunctionName "sfun_nddirectlook"
- Parameters "numInputs,mxTable,clipFlag,tabIsInput,numTD"
- "ims"
- MaskType "LookupNDDirect"
- MaskDescription "Table member selection. Inputs are zero-ba"
- "sed indices into the table, e.g., an input of 3 returns the fourth element in"
- " that dimension. Block can also be used to select a column or 2-D matrix out"
- " of the table."
- MaskPromptString "Number of table dimensions: |Explic"
- "it number of table dimensions:|Inputs select this object from table:|Make tab"
- "le an input|Table data:|Action for out of range input:"
- MaskStyleString "popup(1|2|3|4|More...),edit,popup(Element|C"
- "olumn|2-D Matrix),checkbox,edit,popup(None|Warning|Error)"
- MaskTunableValueString "off,on,off,off,on,on"
- MaskCallbackString "nddirectico('dialog')|||nddirectico('dialog"
- "')||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,off,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskVariables "maskTabDims=@1;explicitNumDims=@2;outDims=@"
- "3;tabIsInput=@4;mxTable=@5;clipFlag=@6;"
- MaskInitialization "if tabIsInput == 1n tWhat = ' T';n yT ="
- " 1/(3+maskTabDims-outDims);nelsen tWhat = ' ';n yT = 0;nendnif maskTab"
- "Dims >= 5n numTDims = explicitNumDims;nelsen numTDims = maskTabDims;nen"
- "dnnumInputs = numTDims - (outDims-1);nif strcmp(get_param(bdroot(gcb),'Blo"
- "ckDiagramType'),'library')n dimsChar = 'n';nelsen dimsChar = sprintf('%d"
- "',numTDims);nendn[x,y] = nddirectico('plotdata', numTDims, tabIsInput, outD"
- "ims);nxp = x((end-3):end); yp = y((end-3):end);nx = x(1:(end-4)); y = y(1:("
- "end-4));n"
- MaskDisplay "text(0.5,0.9, sprintf(' %c-D T[k]',dimsChar"
- "), 'HorizontalAlignment','center')nplot(x,y)npatch(xp, yp)ntext(0.03,yT,tW"
- "hat)n"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "normalized"
- MaskValueString "2|1|Element|off|[0 1 2 3; 4 5 6 7; 8 9 10 1"
- "1; 12 13 14 15]|Warning"
- }
- Block {
- BlockType SubSystem
- Name "4-ASK"
- Ports [1, 1]
- Position [200, 74, 280, 116]
- TreatAsAtomicUnit off
- MaskType "M-ASK mapping"
- MaskDescription "Map a digital symbol onto an analognsignal"
- " in the range [-1, 1] using M-arynamplitude shift keying modulation mapping."
- MaskHelp "This block maps an input digit signal onto "
- "a signal in the range [-1, 1]. The coded signal can be modulated using analog"
- "\nmodulation blocks. Input digits are in the range [0, M-1], where M is the "
- "M-ary number. The input symbol interval can be a two-element vector with the "
- "second element being offset. The default value offset is 0. Use the MODMAP fu"
- "nction to see the constellation."
- MaskPromptString "M-ary number (input integers in range [0, M"
- "-1]):|Input symbol interval and offset (sec):"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "N=@1;td=@2;"
- MaskInitialization "Ac=1;Kc=Ac*2/(N-1);"
- MaskDisplay "disp('MASK\nmapping')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "4|1"
- System {
- Name "4-ASK"
- Location [148, 182, 646, 482]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [60, 60, 80, 80]
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [200, 55, 240, 85]
- Gain "Kc"
- }
- Block {
- BlockType Constant
- Name "Gain diff"
- Position [200, 126, 235, 154]
- Value "Ac"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [270, 93, 290, 117]
- Inputs "+-"
- }
- Block {
- BlockType ZeroOrderHold
- Name "Zero-OrdernHold"
- Position [120, 54, 155, 86]
- SampleTime "td"
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [335, 95, 355, 115]
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- Points [5, 0; 0, 30]
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain diff"
- SrcPort 1
- Points [10, 0; 0, -30]
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Zero-OrdernHold"
- DstPort 1
- }
- Line {
- SrcBlock "Zero-OrdernHold"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "4-ASK1"
- Ports [1, 1]
- Position [200, 234, 280, 276]
- TreatAsAtomicUnit off
- MaskType "M-ASK mapping"
- MaskDescription "Map a digital symbol onto an analognsignal"
- " in the range [-1, 1] using M-arynamplitude shift keying modulation mapping."
- MaskHelp "This block maps an input digit signal onto "
- "a signal in the range [-1, 1]. The coded signal can be modulated using analog"
- "\nmodulation blocks. Input digits are in the range [0, M-1], where M is the "
- "M-ary number. The input symbol interval can be a two-element vector with the "
- "second element being offset. The default value offset is 0. Use the MODMAP fu"
- "nction to see the constellation."
- MaskPromptString "M-ary number (input integers in range [0, M"
- "-1]):|Input symbol interval and offset (sec):"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "N=@1;td=@2;"
- MaskInitialization "Ac=1;Kc=Ac*2/(N-1);"
- MaskDisplay "disp('MASK\nmapping')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "4|1"
- System {
- Name "4-ASK1"
- Location [148, 182, 646, 482]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [60, 60, 80, 80]
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [200, 55, 240, 85]
- Gain "Kc"
- }
- Block {
- BlockType Constant
- Name "Gain diff"
- Position [200, 126, 235, 154]
- Value "Ac"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [270, 93, 290, 117]
- Inputs "+-"
- }
- Block {
- BlockType ZeroOrderHold
- Name "Zero-OrdernHold"
- Position [120, 54, 155, 86]
- SampleTime "td"
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [335, 95, 355, 115]
- }
- Line {
- SrcBlock "Zero-OrdernHold"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Zero-OrdernHold"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain diff"
- SrcPort 1
- Points [10, 0; 0, -30]
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- Points [5, 0; 0, 30]
- DstBlock "Sum1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "4-ary source"
- Ports [0, 1]
- Position [35, 73, 95, 117]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Read from workspace"
- MaskDescription "Read from a workspace variable atnsampling"
- " time point."
- MaskHelp "This block reads from a workspace variable "
- "at a given sample time. The column number is the block output vector length. "
- "When the simulation reaches the end of the variable (eof), the block will cyc"
- "lically output from the first row of the variable or output zeros based on th"
- "e repeat flag entree."
- MaskPromptString "Variable (column_number=block_output_length"
- "):|Data output sample time (sec):|Repeat flag (1: repeat read, 0: output zero"
- "s after eof).|Initial output:"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskInitialization "var=@1;td=@2;ts=td(1);if (length(td)>=2),of"
- "f=td(2);else off=0;end;cyc=@3;ini=@4;[x,y]=srcsicon(7);"
- MaskDisplay "plot(0,0,100,100,x,y);disp('Rd wksp')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "randint(2000,1,4)|1|1|1"
- System {
- Name "4-ary source"
- Location [355, 528, 737, 675]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType "S-Function"
- Name "Message source"
- Ports [1, 1]
- Position [180, 53, 255, 97]
- BackgroundColor "yellow"
- FunctionName "trigwksp"
- Parameters "var,thd,cyclFlag,ini"
- MaskType "Read from workspace"
- MaskDescription "The raising edge of input pulse trigger"
- " the block output the next row from the workspace variable."
- MaskHelp "This block reads the data from a worksp"
- "ace variable. The output is refreshed at the raising edge of the input pulse."
- MaskPromptString "Read the variable:|Threshold for the in"
- "put pulse:|Cyclic read variable (1) or amend zeros (0).|Output before first t"
- "rigger:"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskInitialization "var=@1;thd=@2;cyclFlag=@3;ini=@4;"
- MaskDisplay "disp('Triggered\nread')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "var|.1|cyc|ini"
- }
- Block {
- BlockType SubSystem
- Name "Pulses deividensame sample time1"
- Ports [0, 1]
- Position [50, 56, 110, 94]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Pulse generator"
- MaskDescription "Vector pulses with sample rate of each "
- "pulse as Sample_time ./Divider. "
- MaskHelp "This block generator a vector pulses. T"
- "he output length is the same as the vector defined in "Divider". The ith el"
- "ement of the output has the sample time Sample_time/Divider(i). All elements "
- "in "Divider" must be integers."
- MaskPromptString "Sample time (scalar, sec):|Divider (int"
- "eger vector):|Offset (have same dimension as Divider:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskInitialization "samp_time=@1;out_divid=@2;offset=@3;"
- MaskDisplay "disp('Vector\nPulse')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "ts|1|off"
- System {
- Name "Pulses deividensame sample time1"
- Location [55, 192, 283, 286]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType "S-Function"
- Name "S-function1"
- Ports [0, 1]
- Position [40, 31, 105, 59]
- FunctionName "homopuls"
- Parameters "samp_time, out_divid, offset"
- }
- Block {
- BlockType Outport
- Name "Outport"
- Position [160, 35, 180, 55]
- }
- Line {
- SrcBlock "S-function1"
- SrcPort 1
- DstBlock "Outport"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [295, 65, 315, 85]
- }
- Line {
- SrcBlock "Message source"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- Line {
- SrcBlock "Pulses deividensame sample time1"
- SrcPort 1
- DstBlock "Message source"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "4-ary source_"
- Ports [0, 1]
- Position [35, 233, 95, 277]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Read from workspace"
- MaskDescription "Read from a workspace variable atnsampling"
- " time point."
- MaskHelp "This block reads from a workspace variable "
- "at a given sample time. The column number is the block output vector length. "
- "When the simulation reaches the end of the variable (eof), the block will cyc"
- "lically output from the first row of the variable or output zeros based on th"
- "e repeat flag entree."
- MaskPromptString "Variable (column_number=block_output_length"
- "):|Data output sample time (sec):|Repeat flag (1: repeat read, 0: output zero"
- "s after eof).|Initial output:"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskInitialization "var=@1;td=@2;ts=td(1);if (length(td)>=2),of"
- "f=td(2);else off=0;end;cyc=@3;ini=@4;[x,y]=srcsicon(7);"
- MaskDisplay "plot(0,0,100,100,x,y);disp('Rd wksp')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "randint(2000,1,4)|1|1|1"
- System {
- Name "4-ary source_"
- Location [355, 528, 737, 675]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType "S-Function"
- Name "Message source"
- Ports [1, 1]
- Position [180, 53, 255, 97]
- BackgroundColor "yellow"
- FunctionName "trigwksp"
- Parameters "var,thd,cyclFlag,ini"
- MaskType "Read from workspace"
- MaskDescription "The raising edge of input pulse trigger"
- " the block output the next row from the workspace variable."
- MaskHelp "This block reads the data from a worksp"
- "ace variable. The output is refreshed at the raising edge of the input pulse."
- MaskPromptString "Read the variable:|Threshold for the in"
- "put pulse:|Cyclic read variable (1) or amend zeros (0).|Output before first t"
- "rigger:"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskInitialization "var=@1;thd=@2;cyclFlag=@3;ini=@4;"
- MaskDisplay "disp('Triggered\nread')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "var|.1|cyc|ini"
- }
- Block {
- BlockType SubSystem
- Name "Pulses deividensame sample time1"
- Ports [0, 1]
- Position [50, 56, 110, 94]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Pulse generator"
- MaskDescription "Vector pulses with sample rate of each "
- "pulse as Sample_time ./Divider. "
- MaskHelp "This block generator a vector pulses. T"
- "he output length is the same as the vector defined in "Divider". The ith el"
- "ement of the output has the sample time Sample_time/Divider(i). All elements "
- "in "Divider" must be integers."
- MaskPromptString "Sample time (scalar, sec):|Divider (int"
- "eger vector):|Offset (have same dimension as Divider:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskInitialization "samp_time=@1;out_divid=@2;offset=@3;"
- MaskDisplay "disp('Vector\nPulse')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "ts|1|off"
- System {
- Name "Pulses deividensame sample time1"
- Location [55, 192, 283, 286]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType "S-Function"
- Name "S-function1"
- Ports [0, 1]
- Position [40, 31, 105, 59]
- FunctionName "homopuls"
- Parameters "samp_time, out_divid, offset"
- }
- Block {
- BlockType Outport
- Name "Outport"
- Position [160, 35, 180, 55]
- }
- Line {
- SrcBlock "S-function1"
- SrcPort 1
- DstBlock "Outport"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Outport
- Name "out_1"
- Position [295, 65, 315, 85]
- }
- Line {
- SrcBlock "Pulses deividensame sample time1"
- SrcPort 1
- DstBlock "Message source"
- DstPort 1
- }
- Line {
- SrcBlock "Message source"
- SrcPort 1
- DstBlock "out_1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Clock
- Name "Clock"
- Position [655, 160, 675, 180]
- Decimation "10"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [715, 135, 810, 165]
- ShowName off
- Expr "cos(4*pi*u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [715, 180, 810, 210]
- ShowName off
- Expr "sin(4*pi*u)"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [870, 88, 900, 112]
- ShowName off
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [870, 238, 900, 262]
- ShowName off
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [980, 160, 1000, 180]
- ShowName off
- Inputs "+-"
- }
- Block {
- BlockType Scope
- Name "a_c(t)"
- Ports [1]
- Position [320, 15, 350, 45]
- Orientation "up"
- Location [189, 294, 1110, 394]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "a_s(t)"
- Ports [1]
- Position [320, 170, 350, 200]
- Orientation "up"
- Location [226, 633, 1147, 733]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "closetransmitter"
- Ports []
- Position [915, 25, 1050, 51]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "closetra"
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "close"
- MaskDisplay "disp('Close transmitter')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "closetransmitter"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Scope
- Name "s_c(t)"
- Ports [1]
- Position [530, 15, 560, 45]
- Orientation "up"
- Location [359, 438, 1280, 538]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "s_s(t)"
- Ports [1]
- Position [525, 170, 555, 200]
- Orientation "up"
- Location [359, 731, 1280, 831]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "transmitterndiagrams"
- Ports [2]
- Position [675, 20, 730, 60]
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "2D-Diagrams"
- MaskDescription "Eye pattern, signal space trajectory and sc"
- "atter plot"
- MaskPromptString "Plot start time:|Samples per time slot (2*T"
- "):|Decision offset:"
- MaskStyleString "edit,edit,edit"
- MaskTunableValueString "on,on,on"
- MaskCallbackString "||"
- MaskEnableString "on,on,on"
- MaskVisibilityString "on,on,on"
- MaskToolTipString "on,on,on"
- MaskVarAliasString ",,"
- MaskVariables "starttime=@1;anzahl=@2;offset=@3;"
- MaskInitialization " [x, y] = srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y)"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "0|40|0"
- System {
- Name "transmitterndiagrams"
- Location [533, 416, 945, 709]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Inphase"
- Position [30, 20, 50, 40]
- }
- Block {
- BlockType Inport
- Name "Quadratur"
- Position [30, 80, 50, 100]
- Port "2"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [90, 125, 110, 145]
- Orientation "up"
- ShowName off
- Value "Inf"
- }
- Block {
- BlockType Constant
- Name "Constant0"
- Position [190, 125, 210, 145]
- Orientation "up"
- ShowName off
- Value "0"
- }
- Block {
- BlockType SubSystem
- Name "Inphase eye patternntransmitter"
- Ports [1]
- Position [305, 17, 360, 53]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2"
- "/anzahl"
- System {
- Name "Inphase eye patternntransmitter"
- Location [121, 409, 416, 595]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [230, 16, 265, 49]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux1"
- Ports [2, 1]
- Position [230, 76, 265, 109]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux2"
- Ports [2, 1]
- Position [230, 146, 265, 179]
- Inputs "2"
- }
- Block {
- BlockType Mux
- Name "Mux3"
- Ports [2, 1]
- Position [230, 211, 265, 244]
- Inputs "2"
- }
- Block {
- BlockType SubSystem
- Name "Quadrature eye patternntransmitter"
- Ports [1]
- Position [305, 77, 360, 113]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2"
- "/anzahl"
- System {
- Name "Quadrature eye patternntransmitter"
- Location [121, 409, 416, 595]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Scatter plotntransmitter"
- Ports [1]
- Position [305, 213, 360, 247]
- CopyFcn "eyesampl([],[],[],'CopyBlock')"
- DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
- LoadFcn "eyesampl([],[],[],'LoadBlock')"
- StartFcn "eyesampl([],[],[],'Start')"
- StopFcn "eyesampl([],[],[],'Stop')"
- NameChangeFcn "eyesampl([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram and/or scat"
- "ter plot."
- MaskHelp "This plot opens one, or two plots by as"
- "signing the line type parameters. The scatter plot point is selected by the d"
- "ecision point in the first parameter entry. A decision line is drawn in the e"
- "ye-pattern diagram. The plot is updated at the plot update sample time point."
- MaskPromptString "[Symbol interval, plot offset, decision"
- " point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Numbe"
- "r of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-ty"
- "pe for scatter plot (0 for no plot):|Plot update sample time:"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
- MaskDisplay "plot(0,0,100,100,x,y);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 off"
- "set]"
- System {
- Name "Scatter plotntransmitter"
- Location [165, 242, 460, 428]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [75, 80, 95, 100]
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyesampl"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Step
- Name "Step input"
- Position [30, 125, 50, 145]
- Time "starttime"
- SampleTime "1"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [130, 24, 155, 56]
- Threshold "1"
- }
- Block {
- BlockType Switch
- Name "Switch1"
- Position [130, 84, 155, 116]
- Threshold "1"
- }
- Block {
- BlockType SubSystem
- Name "Trajectoryntransmitter"
- Ports [1]
- Position [305, 157, 360, 193]
- CopyFcn "eyediasi([],[],[],'CopyBlock')"
- DeleteFcn "eyediasi([],[],[],'DeleteBlock')"
- LoadFcn "eyediasi([],[],[],'LoadBlock')"
- StartFcn "eyediasi([],[],[],'Start')"
- StopFcn "eyediasi([],[],[],'Stop')"
- NameChangeFcn "eyediasi([],[],[],'NameChange')"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "Eye-diagram/scatter plot"
- MaskDescription "Produce eye-pattern diagram/scatternpl"
- "ot/x-y plot with the rising edge of the second input as the decision line."
- MaskHelp "This plot opens one, two, or three plot"
- "s by assigning the line type parameters. The scatter plot point is selected b"
- "y the rising edge of a trigger signal. A decision line is drawn at the rising"
- " edge of the trigger signal."
- MaskPromptString "Eye-pattern plot time frame:|Lower and "
- "upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-ty"
- "pe for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for"
- " no plot):|Line-type for x-y plot (0 for no plot):"
- MaskStyleString "edit,edit,edit,edit,edit,edit"
- MaskTunableValueString "on,on,on,on,on,on"
- MaskCallbackString "|||||"
- MaskEnableString "on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on"
- MaskVarAliasString ",,,,,"
- MaskInitialization "time_range=@1;boundary=@2;kept_length=@"
- "3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon"
- "(0,25,get_param(gcb,'orientation'),2);"
- MaskDisplay "plot(0,0,100,100,x,y,v,w);"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
- System {
- Name "Trajectoryntransmitter"
- Location [165, 242, 460, 428]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "in_1"
- Position [15, 55, 35, 75]
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [15, 110, 45, 140]
- Value "0"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [65, 70, 100, 105]
- Inputs "2"
- }
- Block {
- BlockType "S-Function"
- Name "Plot1"
- Ports [1]
- Position [130, 70, 200, 110]
- FunctionName "eyediasi"
- Parameters "time_range, boundary, kept_length, "
- "eye_line, scatter_line, two_d_line"
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Plot1"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "in_1"
- SrcPort 1
- Points [5, 0; 0, 15]
- DstBlock "Mux"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Mux2"
- SrcPort 1
- Points [20, 0]
- DstBlock "Trajectoryntransmitter"
- DstPort 1
- }
- Line {
- SrcBlock "Mux3"
- SrcPort 1
- DstBlock "Scatter plotntransmitter"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Inphase eye patternntransmitter"
- DstPort 1
- }
- Line {
- SrcBlock "Mux1"
- SrcPort 1
- DstBlock "Quadrature eye patternntransmitter"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [0, -10]
- Branch {
- Points [0, -60]
- DstBlock "Switch"
- DstPort 3
- }
- Branch {
- DstBlock "Switch1"
- DstPort 3
- }
- }
- Line {
- SrcBlock "Step input"
- SrcPort 1
- Points [20, 0; 0, -35]
- Branch {
- Points [0, -60]
- DstBlock "Switch"
- DstPort 2
- }
- Branch {
- DstBlock "Switch1"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Inphase"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Quadratur"
- SrcPort 1
- DstBlock "Switch1"
- DstPort 1
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- Points [10, 0; 0, 5]
- Branch {
- Points [0, 110]
- Branch {
- Points [0, 65]
- DstBlock "Mux3"
- DstPort 1
- }
- Branch {
- DstBlock "Mux2"
- DstPort 1
- }
- }
- Branch {
- Points [0, -5]
- DstBlock "Mux"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Switch1"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, 70]
- Branch {
- Points [0, 65]
- DstBlock "Mux3"
- DstPort 2
- }
- Branch {
- DstBlock "Mux2"
- DstPort 2
- }
- }
- Branch {
- DstBlock "Mux1"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Constant0"
- SrcPort 1
- Points [0, -35]
- Branch {
- DstBlock "Mux1"
- DstPort 1
- }
- Branch {
- Points [0, -60]
- DstBlock "Mux"
- DstPort 1
- }
- }
- }
- }
- Block {
- BlockType Scope
- Name "u(t)"
- Ports [1]
- Position [1020, 85, 1050, 115]
- Orientation "up"
- Location [359, 924, 1280, 1024]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.500000"
- YMax "1.500000"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "u_c(t)"
- Ports [1]
- Position [965, 85, 995, 115]
- Location [130, 412, 1051, 512]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "u_s(t)"
- Ports [1]
- Position [965, 235, 995, 265]
- Location [226, 794, 1147, 894]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Outport
- Name "16-QAM-nSignal"
- Position [1065, 160, 1085, 180]
- }
- Block {
- BlockType Outport
- Name "Symbols"
- Position [260, 160, 280, 180]
- Port "2"
- }
- Block {
- BlockType Outport
- Name "a_c"
- Position [380, 55, 400, 75]
- Port "3"
- }
- Block {
- BlockType Outport
- Name "a_s"
- Position [380, 210, 400, 230]
- Port "4"
- }
- Line {
- SrcBlock "4-ASK1"
- SrcPort 1
- Points [50, 0]
- Branch {
- Points [205, 0]
- Branch {
- DstBlock "s_s(t)"
- DstPort 1
- }
- Branch {
- Points [95, 0]
- Branch {
- DstBlock "Product1"
- DstPort 2
- }
- Branch {
- Points [0, -205]
- DstBlock "transmitterndiagrams"
- DstPort 2
- }
- }
- }
- Branch {
- Points [0, -35]
- Branch {
- DstBlock "a_s(t)"
- DstPort 1
- }
- Branch {
- DstBlock "a_s"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "4-ASK"
- SrcPort 1
- Points [50, 0]
- Branch {
- Points [210, 0]
- Branch {
- DstBlock "s_c(t)"
- DstPort 1
- }
- Branch {
- Points [65, 0]
- Branch {
- DstBlock "Product"
- DstPort 1
- }
- Branch {
- Points [0, -65]
- DstBlock "transmitterndiagrams"
- DstPort 1
- }
- }
- }
- Branch {
- Points [0, -30]
- Branch {
- DstBlock "a_c(t)"
- DstPort 1
- }
- Branch {
- DstBlock "a_c"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- Points [0, 0; 30, 0]
- Branch {
- DstBlock "u_s(t)"
- DstPort 1
- }
- Branch {
- Points [0, -75]
- DstBlock "Sum"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [0, 0; 30, 0]
- Branch {
- DstBlock "u_c(t)"
- DstPort 1
- }
- Branch {
- Points [0, 65]
- DstBlock "Sum"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Clock"
- SrcPort 1
- Points [0, 0]
- Branch {
- Points [10, 0; 0, 25]
- DstBlock "Fcn2"
- DstPort 1
- }
- Branch {
- Points [10, 0; 0, -20]
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [20, 0; 0, -45]
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- Points [20, 0; 0, 50]
- DstBlock "Product1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- Points [0, 0; 30, 0]
- Branch {
- DstBlock "u(t)"
- DstPort 1
- }
- Branch {
- DstBlock "16-QAM-nSignal"
- DstPort 1
- }
- }
- Line {
- SrcBlock "4-ary source"
- SrcPort 1
- Points [35, 0]
- Branch {
- Points [5, 0; 0, 60]
- DstBlock "16 QAM"
- DstPort 1
- }
- Branch {
- DstBlock "4-ASK"
- DstPort 1
- }
- }
- Line {
- SrcBlock "4-ary source_"
- SrcPort 1
- Points [40, 0]
- Branch {
- DstBlock "4-ASK1"
- DstPort 1
- }
- Branch {
- Points [0, -75]
- DstBlock "16 QAM"
- DstPort 2
- }
- }
- Line {
- SrcBlock "16 QAM"
- SrcPort 1
- DstBlock "Symbols"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Scope
- Name "a_c(t)n(transmitter)"
- Ports [1]
- Position [295, 220, 325, 250]
- Orientation "down"
- NamePlacement "alternate"
- Location [227, 535, 1147, 635]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "a_s(t)n(transmitter)"
- Ports [1]
- Position [200, 220, 230, 250]
- Orientation "down"
- NamePlacement "alternate"
- Location [227, 632, 1147, 732]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "constellation"
- Ports []
- Position [35, 24, 120, 61]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "cplotqam(16)"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "constellation"
- MaskDisplay "disp('Signal Space \n Constellation')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "constellation"
- Location [74, 73, 1338, 1015]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Scope
- Name "detectednsymbols"
- Ports [1]
- Position [745, 220, 775, 250]
- Orientation "down"
- NamePlacement "alternate"
- Location [227, 794, 1147, 894]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-15"
- YMax "15"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "noise variance"
- Ports []
- Position [454, 45, 560, 69]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "setnoise"
- FontSize 12
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "noise"
- MaskDisplay "disp('Noise variance')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "noise variance"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Scope
- Name "r(t)"
- Ports [1]
- Position [590, 25, 620, 55]
- Orientation "up"
- Location [227, 794, 1147, 894]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Block {
- BlockType SubSystem
- Name "show receiver"
- Ports []
- Position [790, 105, 925, 131]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "showqamr"
- FontSize 12
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "open"
- MaskDisplay "disp('Receiver')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "show receiver"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType SubSystem
- Name "show transmitter"
- Ports []
- Position [35, 110, 170, 136]
- BackgroundColor "lightBlue"
- ShowName off
- OpenFcn "showqamt"
- FontSize 12
- FontAngle "italic"
- ShowPortLabels off
- TreatAsAtomicUnit off
- MaskType "open"
- MaskDisplay "disp('Transmitter')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "show transmitter"
- Location [136, 230, 381, 439]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "cyan"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType Scope
- Name "transmittednsymbols"
- Ports [1]
- Position [345, 220, 375, 250]
- Orientation "down"
- Location [227, 438, 1147, 538]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-15"
- YMax "15"
- DataFormat "Array"
- }
- Block {
- BlockType Scope
- Name "u(t)"
- Ports [1]
- Position [390, 25, 420, 55]
- Orientation "up"
- Location [227, 729, 1147, 829]
- Open off
- NumInputPorts "1"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- TimeRange "25.000000"
- YMin "-1.5"
- YMax "1.5"
- DataFormat "Array"
- }
- Line {
- SrcBlock "Transmitter"
- SrcPort 1
- Points [0, -10; 125, 0]
- Branch {
- DstBlock "u(t)"
- DstPort 1
- }
- Branch {
- DstBlock "Channel"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Channel"
- SrcPort 1
- Points [50, 0]
- Branch {
- DstBlock "Receiver"
- DstPort 1
- }
- Branch {
- DstBlock "r(t)"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Receiver"
- SrcPort 1
- Points [30, 0; 0, 80]
- Branch {
- DstBlock "detectednsymbols"
- DstPort 1
- }
- Branch {
- Points [-235, 0]
- DstBlock "Error rate"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Transmitter"
- SrcPort 2
- Points [80, 0; 0, 50]
- Branch {
- Points [125, 0]
- DstBlock "Error rate"
- DstPort 1
- }
- Branch {
- DstBlock "transmittednsymbols"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Transmitter"
- SrcPort 3
- Points [30, 0]
- DstBlock "a_c(t)n(transmitter)"
- DstPort 1
- }
- Line {
- SrcBlock "Transmitter"
- SrcPort 4
- Points [5, 0; 0, 30]
- DstBlock "a_s(t)n(transmitter)"
- DstPort 1
- }
- }
- }