bpswnymf.mdl
Upload User: loeagle
Upload Date: 2013-03-02
Package Size: 1236k
Code Size: 78k
Development Platform:

Matlab

  1. Model {
  2.   Name   "bpswnymf"
  3.   Version   5.0
  4.   SaveDefaultBlockParams  on
  5.   SampleTimeColors   off
  6.   LibraryLinkDisplay   "none"
  7.   WideLines   off
  8.   ShowLineDimensions   off
  9.   ShowPortDataTypes   off
  10.   ShowLoopsOnError   on
  11.   IgnoreBidirectionalLines off
  12.   ShowStorageClass   off
  13.   ExecutionOrder   off
  14.   RecordCoverage   off
  15.   CovPath   "/"
  16.   CovSaveName   "covdata"
  17.   CovMetricSettings   "dw"
  18.   CovNameIncrementing   off
  19.   CovHtmlReporting   on
  20.   covSaveCumulativeToWorkspaceVar on
  21.   CovSaveSingleToWorkspaceVar on
  22.   CovCumulativeVarName   "covCumulativeData"
  23.   CovCumulativeReport   off
  24.   DataTypeOverride   "UseLocalSettings"
  25.   MinMaxOverflowLogging   "UseLocalSettings"
  26.   MinMaxOverflowArchiveMode "Overwrite"
  27.   BlockNameDataTip   off
  28.   BlockParametersDataTip  off
  29.   BlockDescriptionStringDataTip off
  30.   ToolBar   on
  31.   StatusBar   on
  32.   BrowserShowLibraryLinks off
  33.   BrowserLookUnderMasks   off
  34.   CloseFcn   "closemodcross"
  35.   Created   "Fri Jul 20 15:41:35 2001"
  36.   Creator   "gerhard"
  37.   UpdateHistory   "UpdateHistoryNever"
  38.   ModifiedByFormat   "%<Auto>"
  39.   LastModifiedBy   "bauch"
  40.   ModifiedDateFormat   "%<Auto>"
  41.   LastModifiedDate   "Sat Aug 30 14:39:33 2003"
  42.   ModelVersionFormat   "1.%<AutoIncrement:59>"
  43.   ConfigurationManager   "none"
  44.   SimParamPage   "Solver"
  45.   LinearizationMsg   "none"
  46.   Profile   off
  47.   ParamWorkspaceSource   "MATLABWorkspace"
  48.   AccelSystemTargetFile   "accel.tlc"
  49.   AccelTemplateMakefile   "accel_default_tmf"
  50.   AccelMakeCommand   "make_rtw"
  51.   TryForcingSFcnDF   off
  52.   ExtModeMexFile   "ext_comm"
  53.   ExtModeBatchMode   off
  54.   ExtModeTrigType   "manual"
  55.   ExtModeTrigMode   "normal"
  56.   ExtModeTrigPort   "1"
  57.   ExtModeTrigElement   "any"
  58.   ExtModeTrigDuration   1000
  59.   ExtModeTrigHoldOff   0
  60.   ExtModeTrigDelay   0
  61.   ExtModeTrigDirection   "rising"
  62.   ExtModeTrigLevel   0
  63.   ExtModeArchiveMode   "off"
  64.   ExtModeAutoIncOneShot   off
  65.   ExtModeIncDirWhenArm   off
  66.   ExtModeAddSuffixToVar   off
  67.   ExtModeWriteAllDataToWs off
  68.   ExtModeArmWhenConnect   on
  69.   ExtModeSkipDownloadWhenConnect off
  70.   ExtModeLogAll   on
  71.   ExtModeAutoUpdateStatusClock off
  72.   BufferReuse   on
  73.   RTWExpressionDepthLimit 5
  74.   SimulationMode   "normal"
  75.   Solver   "ode45"
  76.   SolverMode   "Auto"
  77.   StartTime   "0.0"
  78.   StopTime   "999999"
  79.   MaxOrder   5
  80.   MaxStep   ".0010"
  81.   MinStep   "0.000001"
  82.   MaxNumMinSteps   "-1"
  83.   InitialStep   "auto"
  84.   FixedStep   "auto"
  85.   RelTol   "1e-6"
  86.   AbsTol   "1e-6"
  87.   OutputOption   "RefineOutputTimes"
  88.   OutputTimes   "[]"
  89.   Refine   "1"
  90.   LoadExternalInput   off
  91.   ExternalInput   "[t, u]"
  92.   LoadInitialState   off
  93.   InitialState   "xInitial"
  94.   SaveTime   off
  95.   TimeSaveName   "tout"
  96.   SaveState   off
  97.   StateSaveName   "xout"
  98.   SaveOutput   off
  99.   OutputSaveName   "yout"
  100.   SaveFinalState   off
  101.   FinalStateName   "xFinal"
  102.   SaveFormat   "Array"
  103.   Decimation   "1"
  104.   LimitDataPoints   on
  105.   MaxDataPoints   "1000"
  106.   SignalLoggingName   "sigsOut"
  107.   ConsistencyChecking   "none"
  108.   ArrayBoundsChecking   "none"
  109.   AlgebraicLoopMsg   "warning"
  110.   BlockPriorityViolationMsg "warning"
  111.   MinStepSizeMsg   "warning"
  112.   InheritedTsInSrcMsg   "warning"
  113.   DiscreteInheritContinuousMsg "warning"
  114.   MultiTaskRateTransMsg   "error"
  115.   SingleTaskRateTransMsg  "none"
  116.   CheckForMatrixSingularity "none"
  117.   IntegerOverflowMsg   "warning"
  118.   Int32ToFloatConvMsg   "warning"
  119.   ParameterDowncastMsg   "error"
  120.   ParameterOverflowMsg   "error"
  121.   ParameterPrecisionLossMsg "warning"
  122.   UnderSpecifiedDataTypeMsg "none"
  123.   UnnecessaryDatatypeConvMsg "none"
  124.   VectorMatrixConversionMsg "none"
  125.   InvalidFcnCallConnMsg   "error"
  126.   SignalLabelMismatchMsg  "none"
  127.   UnconnectedInputMsg   "warning"
  128.   UnconnectedOutputMsg   "warning"
  129.   UnconnectedLineMsg   "warning"
  130.   SfunCompatibilityCheckMsg "none"
  131.   RTWInlineParameters   off
  132.   BlockReductionOpt   off
  133.   BooleanDataType   off
  134.   ConditionallyExecuteInputs on
  135.   ParameterPooling   on
  136.   OptimizeBlockIOStorage  on
  137.   ZeroCross   on
  138.   AssertionControl   "UseLocalSettings"
  139.   ProdHWDeviceType   "Microprocessor"
  140.   ProdHWWordLengths   "8,16,32,32"
  141.   RTWSystemTargetFile   "grt.tlc"
  142.   RTWTemplateMakefile   "grt_default_tmf"
  143.   RTWMakeCommand   "make_rtw"
  144.   RTWGenerateCodeOnly   off
  145.   RTWRetainRTWFile   off
  146.   TLCProfiler   off
  147.   TLCDebug   off
  148.   TLCCoverage   off
  149.   TLCAssertion   off
  150.   BlockDefaults {
  151.     Orientation     "right"
  152.     ForegroundColor     "black"
  153.     BackgroundColor     "white"
  154.     DropShadow     off
  155.     NamePlacement     "normal"
  156.     FontName     "Helvetica"
  157.     FontSize     10
  158.     FontWeight     "normal"
  159.     FontAngle     "normal"
  160.     ShowName     on
  161.   }
  162.   BlockParameterDefaults {
  163.     Block {
  164.       BlockType       Clock
  165.       DisplayTime       off
  166.     }
  167.     Block {
  168.       BlockType       Constant
  169.       Value       "1"
  170.       VectorParams1D       on
  171.       ShowAdditionalParam     off
  172.       OutDataTypeMode       "Inherit from 'Constant value'"
  173.       OutDataType       "sfix(16)"
  174.       ConRadixGroup       "Use specified scaling"
  175.       OutScaling       "2^0"
  176.     }
  177.     Block {
  178.       BlockType       DiscreteFilter
  179.       Numerator       "[1]"
  180.       Denominator       "[1 2]"
  181.       SampleTime       "1"
  182.       Realization       "auto"
  183.       RTWStateStorageClass    "Auto"
  184.     }
  185.     Block {
  186.       BlockType       Fcn
  187.       Expr       "sin(u[1])"
  188.     }
  189.     Block {
  190.       BlockType       Gain
  191.       Gain       "1"
  192.       Multiplication       "Element-wise(K.*u)"
  193.       ShowAdditionalParam     off
  194.       ParameterDataTypeMode   "Same as input"
  195.       ParameterDataType       "sfix(16)"
  196.       ParameterScalingMode    "Best Precision: Matrix-wise"
  197.       ParameterScaling       "2^0"
  198.       OutDataTypeMode       "Same as input"
  199.       OutDataType       "sfix(16)"
  200.       OutScaling       "2^0"
  201.       LockScale       off
  202.       RndMeth       "Floor"
  203.       SaturateOnIntegerOverflow on
  204.     }
  205.     Block {
  206.       BlockType       Inport
  207.       Port       "1"
  208.       PortDimensions       "-1"
  209.       SampleTime       "-1"
  210.       ShowAdditionalParam     off
  211.       LatchInput       off
  212.       DataType       "auto"
  213.       OutDataType       "sfix(16)"
  214.       OutScaling       "2^0"
  215.       SignalType       "auto"
  216.       SamplingMode       "auto"
  217.       Interpolate       on
  218.     }
  219.     Block {
  220.       BlockType       Mux
  221.       Inputs       "4"
  222.       DisplayOption       "none"
  223.     }
  224.     Block {
  225.       BlockType       Outport
  226.       Port       "1"
  227.       OutputWhenDisabled      "held"
  228.       InitialOutput       "[]"
  229.     }
  230.     Block {
  231.       BlockType       Product
  232.       Inputs       "2"
  233.       Multiplication       "Element-wise(.*)"
  234.       ShowAdditionalParam     off
  235.       InputSameDT       on
  236.       OutDataTypeMode       "Same as first input"
  237.       OutDataType       "sfix(16)"
  238.       OutScaling       "2^0"
  239.       LockScale       off
  240.       RndMeth       "Floor"
  241.       SaturateOnIntegerOverflow on
  242.     }
  243.     Block {
  244.       BlockType       RandomNumber
  245.       Mean       "0"
  246.       Variance       "1"
  247.       Seed       "0"
  248.       SampleTime       "-1"
  249.       VectorParams1D       on
  250.     }
  251.     Block {
  252.       BlockType       RelationalOperator
  253.       Operator       ">="
  254.       ShowAdditionalParam     off
  255.       InputSameDT       on
  256.       LogicOutDataTypeMode    "Logical (see Advanced Sim. Parameters)"
  257.       LogicDataType       "uint(8)"
  258.       ZeroCross       on
  259.     }
  260.     Block {
  261.       BlockType       Scope
  262.       Floating       off
  263.       ModelBased       off
  264.       TickLabels       "OneTimeTick"
  265.       ZoomMode       "on"
  266.       Grid       "on"
  267.       TimeRange       "auto"
  268.       YMin       "-5"
  269.       YMax       "5"
  270.       SaveToWorkspace       off
  271.       SaveName       "ScopeData"
  272.       LimitDataPoints       on
  273.       MaxDataPoints       "5000"
  274.       Decimation       "1"
  275.       SampleInput       off
  276.       SampleTime       "0"
  277.     }
  278.     Block {
  279.       BlockType       "S-Function"
  280.       FunctionName       "system"
  281.       PortCounts       "[]"
  282.       SFunctionModules       "''"
  283.     }
  284.     Block {
  285.       BlockType       StateSpace
  286.       A       "1"
  287.       B       "1"
  288.       C       "1"
  289.       D       "1"
  290.       X0       "0"
  291.       AbsoluteTolerance       "auto"
  292.       Realization       "auto"
  293.     }
  294.     Block {
  295.       BlockType       Step
  296.       Time       "1"
  297.       Before       "0"
  298.       After       "1"
  299.       SampleTime       "-1"
  300.       VectorParams1D       on
  301.       ZeroCross       on
  302.     }
  303.     Block {
  304.       BlockType       SubSystem
  305.       ShowPortLabels       on
  306.       Permissions       "ReadWrite"
  307.       RTWSystemCode       "Auto"
  308.       RTWFcnNameOpts       "Auto"
  309.       RTWFileNameOpts       "Auto"
  310.       SimViewingDevice       off
  311.       DataTypeOverride       "UseLocalSettings"
  312.       MinMaxOverflowLogging   "UseLocalSettings"
  313.     }
  314.     Block {
  315.       BlockType       Sum
  316.       IconShape       "rectangular"
  317.       Inputs       "++"
  318.       ShowAdditionalParam     off
  319.       InputSameDT       on
  320.       OutDataTypeMode       "Same as first input"
  321.       OutDataType       "sfix(16)"
  322.       OutScaling       "2^0"
  323.       LockScale       off
  324.       RndMeth       "Floor"
  325.       SaturateOnIntegerOverflow on
  326.     }
  327.     Block {
  328.       BlockType       Switch
  329.       Criteria       "u2 >= Threshold"
  330.       Threshold       "0"
  331.       ShowAdditionalParam     off
  332.       InputSameDT       on
  333.       OutDataTypeMode       "Inherit via internal rule"
  334.       RndMeth       "Floor"
  335.       SaturateOnIntegerOverflow on
  336.       ZeroCross       on
  337.     }
  338.     Block {
  339.       BlockType       UnitDelay
  340.       X0       "0"
  341.       SampleTime       "1"
  342.       RTWStateStorageClass    "Auto"
  343.     }
  344.     Block {
  345.       BlockType       ZeroOrderHold
  346.       SampleTime       "1"
  347.     }
  348.   }
  349.   AnnotationDefaults {
  350.     HorizontalAlignment     "center"
  351.     VerticalAlignment     "middle"
  352.     ForegroundColor     "black"
  353.     BackgroundColor     "white"
  354.     DropShadow     off
  355.     FontName     "Helvetica"
  356.     FontSize     10
  357.     FontWeight     "normal"
  358.     FontAngle     "normal"
  359.   }
  360.   LineDefaults {
  361.     FontName     "Helvetica"
  362.     FontSize     9
  363.     FontWeight     "normal"
  364.     FontAngle     "normal"
  365.   }
  366.   System {
  367.     Name     "bpswnymf"
  368.     Location     [8, 231, 1020, 508]
  369.     Open     on
  370.     ModelBrowserVisibility  off
  371.     ModelBrowserWidth     200
  372.     ScreenColor     "white"
  373.     PaperOrientation     "landscape"
  374.     PaperPositionMode     "auto"
  375.     PaperType     "usletter"
  376.     PaperUnits     "inches"
  377.     ZoomFactor     "100"
  378.     ReportName     "simulink-default.rpt"
  379.     Block {
  380.       BlockType       Reference
  381.       Name       "Channel"
  382.       Ports       [1, 1]
  383.       Position       [505, 109, 585, 151]
  384.       SourceBlock       "librnew/Channel"
  385.       SourceType       "AWGN channel, fixed parameter"
  386.       m       "0"
  387.       variance       "0.001"
  388.       s       "12345"
  389.     }
  390.     Block {
  391.       BlockType       Clock
  392.       Name       "Clock"
  393.       Position       [235, 150, 255, 170]
  394.       ShowName       off
  395.       Decimation       "10"
  396.     }
  397.     Block {
  398.       BlockType       Clock
  399.       Name       "Clock1"
  400.       Position       [485, 25, 505, 45]
  401.       ShowName       off
  402.       Decimation       "10"
  403.     }
  404.     Block {
  405.       BlockType       Reference
  406.       Name       "Error rate"
  407.       Ports       [2]
  408.       Position       [890, 230, 970, 270]
  409.       Orientation       "down"
  410.       SourceBlock       "librnew/Error rate"
  411.       SourceType       "Symbol/bit error counter"
  412.       MaskParam1       "1"
  413.       MaskParam2       "10"
  414.       MaskParam3       "12"
  415.       MaskParam4       "1"
  416.     }
  417.     Block {
  418.       BlockType       Fcn
  419.       Name       "Fcn"
  420.       Position       [525, 22, 620, 48]
  421.       ShowName       off
  422.       Expr       "2*cos(4*pi*u)"
  423.     }
  424.     Block {
  425.       BlockType       Fcn
  426.       Name       "Fcn1"
  427.       Position       [275, 145, 370, 175]
  428.       ShowName       off
  429.       Expr       "cos(4*pi*u)"
  430.     }
  431.     Block {
  432.       BlockType       Gain
  433.       Name       "Gain"
  434.       Position       [185, 112, 210, 138]
  435.       Gain       "4"
  436.     }
  437.     Block {
  438.       BlockType       Gain
  439.       Name       "Gain1"
  440.       Position       [805, 112, 830, 138]
  441.       Gain       "1/4"
  442.     }
  443.     Block {
  444.       BlockType       Product
  445.       Name       "Product"
  446.       Ports       [2, 1]
  447.       Position       [400, 118, 430, 142]
  448.       ShowName       off
  449.     }
  450.     Block {
  451.       BlockType       Product
  452.       Name       "Product1"
  453.       Ports       [2, 1]
  454.       Position       [640, 113, 670, 137]
  455.       ShowName       off
  456.     }
  457.     Block {
  458.       BlockType       SubSystem
  459.       Name       "Rolloff"
  460.       Ports       []
  461.       Position       [65, 64, 183, 91]
  462.       BackgroundColor       "lightBlue"
  463.       ShowName       off
  464.       OpenFcn       "setrobin"
  465.       FontSize       12
  466.       FontAngle       "italic"
  467.       ShowPortLabels       off
  468.       TreatAsAtomicUnit       off
  469.       MaskType       "rolloff"
  470.       MaskDisplay       "disp('Rolloff-Factor')"
  471.       MaskIconFrame       on
  472.       MaskIconOpaque       on
  473.       MaskIconRotate       "none"
  474.       MaskIconUnits       "autoscale"
  475.       System {
  476. Name "Rolloff"
  477. Location [136, 230, 381, 439]
  478. Open off
  479. ModelBrowserVisibility off
  480. ModelBrowserWidth 200
  481. ScreenColor "cyan"
  482. PaperOrientation "landscape"
  483. PaperPositionMode "auto"
  484. PaperType "A4"
  485. PaperUnits "centimeters"
  486. ZoomFactor "100"
  487.       }
  488.     }
  489.     Block {
  490.       BlockType       SubSystem
  491.       Name       "Root-RCnreceive filter"
  492.       Ports       [1, 1]
  493.       Position       [705, 103, 785, 147]
  494.       ShowPortLabels       off
  495.       TreatAsAtomicUnit       off
  496.       MaskType       "R-C filter"
  497.       MaskDescription       "Design a raised cosine filter and use it to fil"
  498. "ter the input signal."
  499.       MaskHelp       "This block designs a raised cosine filter using"
  500. " the specified parameter. The filter is used to filter the input signal. You "
  501. "can optionally use the sinc filter in the filtering computation."
  502.       MaskPromptString       "Symbol interval (sec):|Computation sampling tim"
  503. "e (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interv"
  504. "al):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter"
  505. " (1 or 0, suggest 1):"
  506.       MaskStyleString       "edit,edit,edit,edit,edit,edit"
  507.       MaskTunableValueString  "on,on,on,on,on,on"
  508.       MaskCallbackString      "|||||"
  509.       MaskEnableString       "on,on,on,on,on,on"
  510.       MaskVisibilityString    "on,on,on,on,on,on"
  511.       MaskToolTipString       "on,on,on,on,on,on"
  512.       MaskVarAliasString      ",,,,,"
  513.       MaskInitialization      "td=@1;if length(td)>1,off=td(2);td=td(1);else,o"
  514. "ff=0;end;ts=@2;R=@3;delay=@4;fil=@5;[num,den]=rcosine(1/td(1),1/ts(1),fil,R,d"
  515. "elay);x=@6/2;"
  516.       MaskDisplay       "disp('R-C\nfilter')"
  517.       MaskIconFrame       on
  518.       MaskIconOpaque       on
  519.       MaskIconRotate       "none"
  520.       MaskIconUnits       "autoscale"
  521.       MaskValueString       "1|.05|0.5|6|'FIR/Sqrt'|0"
  522.       System {
  523. Name "Root-RCnreceive filter"
  524. Location [131, 545, 589, 761]
  525. Open off
  526. ModelBrowserVisibility off
  527. ModelBrowserWidth 200
  528. ScreenColor "white"
  529. PaperOrientation "landscape"
  530. PaperPositionMode "auto"
  531. PaperType "usletter"
  532. PaperUnits "inches"
  533. ZoomFactor "100"
  534. Block {
  535.   BlockType   Inport
  536.   Name   "in_1"
  537.   Position   [35, 30, 55, 50]
  538. }
  539. Block {
  540.   BlockType   DiscreteFilter
  541.   Name   "Filter"
  542.   Position   [255, 31, 310, 69]
  543.   Numerator   "num"
  544.   Denominator   "den"
  545.   SampleTime   "ts"
  546. }
  547. Block {
  548.   BlockType   SubSystem
  549.   Name   "Memory Impulse"
  550.   Ports   [2, 1]
  551.   Position   [155, 30, 225, 70]
  552.   ShowPortLabels   off
  553.   TreatAsAtomicUnit   off
  554.   MaskType   "Impulse"
  555.   MaskDescription   "1/sinc filter:"
  556.   MaskHelp   "When the threshold is greater than zero, th"
  557. "is block outputs an impulse signal, which begins at the raising edge of the s"
  558. "econd input and lasts the holding time. The impulse holds a constant amplitud"
  559. "e, which equals the amplitude of the first input at the begining of the impul"
  560. "se. A clock raising edge will trigger next impulse. When the threshold is les"
  561. "s or equal to zero, this block faithfully outputs the first input."
  562.   MaskPromptString   "Holding time:|Threshold for clock pulse: "
  563.   MaskStyleString   "edit,edit"
  564.   MaskTunableValueString  "on,on"
  565.   MaskCallbackString   "|"
  566.   MaskEnableString   "on,on"
  567.   MaskVisibilityString   "on,on"
  568.   MaskToolTipString   "on,on"
  569.   MaskVarAliasString   ","
  570.   MaskInitialization   "ts=@1;thr=@2;x=thr>0;"
  571.   MaskDisplay   "disp('1/sinc')"
  572.   MaskIconFrame   on
  573.   MaskIconOpaque   on
  574.   MaskIconRotate   "none"
  575.   MaskIconUnits   "autoscale"
  576.   MaskValueString   "ts|x"
  577.   System {
  578.     Name     "Memory Impulse"
  579.     Location     [541, 520, 939, 745]
  580.     Open     off
  581.     ModelBrowserVisibility  off
  582.     ModelBrowserWidth     200
  583.     ScreenColor     "white"
  584.     PaperOrientation     "landscape"
  585.     PaperPositionMode     "auto"
  586.     PaperType     "usletter"
  587.     PaperUnits     "inches"
  588.     ZoomFactor     "100"
  589.     Block {
  590.       BlockType       Inport
  591.       Name       "in_1"
  592.       Position       [35, 185, 55, 205]
  593.     }
  594.     Block {
  595.       BlockType       Inport
  596.       Name       "in_2"
  597.       Position       [25, 30, 45, 50]
  598.       Port       "2"
  599.     }
  600.     Block {
  601.       BlockType       Constant
  602.       Name       "Constant"
  603.       Position       [210, 155, 230, 175]
  604.       Value       "x"
  605.     }
  606.     Block {
  607.       BlockType       Product
  608.       Name       "Product"
  609.       Ports       [2, 1]
  610.       Position       [155, 90, 180, 110]
  611.     }
  612.     Block {
  613.       BlockType       Switch
  614.       Name       "Switch"
  615.       Position       [295, 124, 320, 156]
  616.       Threshold       ".5"
  617.     }
  618.     Block {
  619.       BlockType       ZeroOrderHold
  620.       Name       "Zero-OrdernHold"
  621.       Position       [205, 84, 240, 116]
  622.       SampleTime       "ts"
  623.     }
  624.     Block {
  625.       BlockType       SubSystem
  626.       Name       "discretenRising edgendetector"
  627.       Ports       [1, 1]
  628.       Position       [65, 26, 120, 54]
  629.       ShowPortLabels       off
  630.       TreatAsAtomicUnit       off
  631.       MaskType       "Edge Detection"
  632.       MaskDescription       "Rising edge detection:"
  633.       MaskHelp       "When the input signal rising edge passe"
  634. "d the given shreshold, this block outputs one, otherwise outputs zero."
  635.       MaskPromptString       "Threshold:|Sampling time:"
  636.       MaskStyleString       "edit,edit"
  637.       MaskTunableValueString  "on,on"
  638.       MaskCallbackString      "|"
  639.       MaskEnableString       "on,on"
  640.       MaskVisibilityString    "on,on"
  641.       MaskToolTipString       "on,on"
  642.       MaskVarAliasString      ","
  643.       MaskInitialization      "thld=@1;ts=@2;"
  644.       MaskDisplay       "disp('Edge\nDetector')"
  645.       MaskIconFrame       on
  646.       MaskIconOpaque       on
  647.       MaskIconRotate       "none"
  648.       MaskIconUnits       "autoscale"
  649.       MaskValueString       "thr|ts"
  650.       System {
  651. Name "discretenRising edgendetector"
  652. Location [419, 521, 808, 713]
  653. Open off
  654. ModelBrowserVisibility off
  655. ModelBrowserWidth 200
  656. ScreenColor "white"
  657. PaperOrientation "landscape"
  658. PaperPositionMode "auto"
  659. PaperType "usletter"
  660. PaperUnits "inches"
  661. ZoomFactor "100"
  662. Block {
  663.   BlockType   Inport
  664.   Name   "in_1"
  665.   Position   [10, 15, 30, 35]
  666. }
  667. Block {
  668.   BlockType   RelationalOperator
  669.   Name   "RelationalnOperator"
  670.   Position   [135, 18, 165, 42]
  671. }
  672. Block {
  673.   BlockType   RelationalOperator
  674.   Name   "RelationalnOperator1"
  675.   Position   [200, 88, 230, 112]
  676. }
  677. Block {
  678.   BlockType   RelationalOperator
  679.   Name   "RelationalnOperator2"
  680.   Position   [265, 23, 295, 47]
  681.   Operator   ">"
  682. }
  683. Block {
  684.   BlockType   UnitDelay
  685.   Name   "Unit Delay"
  686.   Position   [120, 87, 170, 103]
  687.   SampleTime   "ts"
  688. }
  689. Block {
  690.   BlockType   Constant
  691.   Name   "one1"
  692.   Position   [30, 135, 60, 155]
  693.   Value   "thld"
  694. }
  695. Block {
  696.   BlockType   Outport
  697.   Name   "out_1"
  698.   Position   [340, 25, 360, 45]
  699. }
  700. Line {
  701.   SrcBlock   "in_1"
  702.   SrcPort   1
  703.   Points   [10, 0]
  704.   Branch {
  705.     DstBlock     "RelationalnOperator"
  706.     DstPort     1
  707.   }
  708.   Branch {
  709.     Points     [0, 70]
  710.     DstBlock     "Unit Delay"
  711.     DstPort     1
  712.   }
  713. }
  714. Line {
  715.   SrcBlock   "Unit Delay"
  716.   SrcPort   1
  717.   DstBlock   "RelationalnOperator1"
  718.   DstPort   1
  719. }
  720. Line {
  721.   SrcBlock   "one1"
  722.   SrcPort   1
  723.   Points   [35, 0]
  724.   Branch {
  725.     Points     [0, -110]
  726.     DstBlock     "RelationalnOperator"
  727.     DstPort     2
  728.   }
  729.   Branch {
  730.     Points     [80, 0; 0, -40]
  731.     DstBlock     "RelationalnOperator1"
  732.     DstPort     2
  733.   }
  734. }
  735. Line {
  736.   SrcBlock   "RelationalnOperator"
  737.   SrcPort   1
  738.   DstBlock   "RelationalnOperator2"
  739.   DstPort   1
  740. }
  741. Line {
  742.   SrcBlock   "RelationalnOperator1"
  743.   SrcPort   1
  744.   Points   [5, 0; 0, -60]
  745.   DstBlock   "RelationalnOperator2"
  746.   DstPort   2
  747. }
  748. Line {
  749.   SrcBlock   "RelationalnOperator2"
  750.   SrcPort   1
  751.   DstBlock   "out_1"
  752.   DstPort   1
  753. }
  754.       }
  755.     }
  756.     Block {
  757.       BlockType       Outport
  758.       Name       "out_1"
  759.       Position       [355, 130, 375, 150]
  760.     }
  761.     Line {
  762.       SrcBlock       "in_2"
  763.       SrcPort       1
  764.       DstBlock       "discretenRising edgendetector"
  765.       DstPort       1
  766.     }
  767.     Line {
  768.       SrcBlock       "discretenRising edgendetector"
  769.       SrcPort       1
  770.       Points       [5, 0; 0, 55]
  771.       DstBlock       "Product"
  772.       DstPort       1
  773.     }
  774.     Line {
  775.       SrcBlock       "Constant"
  776.       SrcPort       1
  777.       Points       [15, 0; 0, -25]
  778.       DstBlock       "Switch"
  779.       DstPort       2
  780.     }
  781.     Line {
  782.       SrcBlock       "Switch"
  783.       SrcPort       1
  784.       DstBlock       "out_1"
  785.       DstPort       1
  786.     }
  787.     Line {
  788.       SrcBlock       "in_1"
  789.       SrcPort       1
  790.       Points       [35, 0]
  791.       Branch {
  792. Points [185, 0]
  793. DstBlock "Switch"
  794. DstPort 3
  795.       }
  796.       Branch {
  797. Points [0, -90]
  798. DstBlock "Product"
  799. DstPort 2
  800.       }
  801.     }
  802.     Line {
  803.       SrcBlock       "Product"
  804.       SrcPort       1
  805.       DstBlock       "Zero-OrdernHold"
  806.       DstPort       1
  807.     }
  808.     Line {
  809.       SrcBlock       "Zero-OrdernHold"
  810.       SrcPort       1
  811.       Points       [15, 0; 0, 30]
  812.       DstBlock       "Switch"
  813.       DstPort       1
  814.     }
  815.   }
  816. }
  817. Block {
  818.   BlockType   SubSystem
  819.   Name   "Pulses deividensame sample time1"
  820.   Ports   [0, 1]
  821.   Position   [35, 71, 95, 109]
  822.   ShowPortLabels   off
  823.   TreatAsAtomicUnit   off
  824.   MaskType   "Pulse generator"
  825.   MaskDescription   "Vector pulses with sample rate of each puls"
  826. "e as Sample_time ./Divider. "
  827.   MaskHelp   "This block generator a vector pulses. The o"
  828. "utput length is the same as the vector defined in "Divider". The ith elemen"
  829. "t of the output has the sample time Sample_time/Divider(i). All elements in "
  830. ""Divider" must be integers."
  831.   MaskPromptString   "Sample time (scalar, sec):|Divider (integer"
  832. " vector):|Offset (have same dimension as Divider:"
  833.   MaskStyleString   "edit,edit,edit"
  834.   MaskTunableValueString  "on,on,on"
  835.   MaskCallbackString   "||"
  836.   MaskEnableString   "on,on,on"
  837.   MaskVisibilityString   "on,on,on"
  838.   MaskToolTipString   "on,on,on"
  839.   MaskVarAliasString   ",,"
  840.   MaskInitialization   "samp_time=@1;out_divid=@2;offset=@3;"
  841.   MaskDisplay   "disp('Vector\nPulse')"
  842.   MaskIconFrame   on
  843.   MaskIconOpaque   on
  844.   MaskIconRotate   "none"
  845.   MaskIconUnits   "autoscale"
  846.   MaskValueString   "td|1|off"
  847.   System {
  848.     Name     "Pulses deividensame sample time1"
  849.     Location     [55, 192, 283, 286]
  850.     Open     off
  851.     ModelBrowserVisibility  off
  852.     ModelBrowserWidth     200
  853.     ScreenColor     "white"
  854.     PaperOrientation     "landscape"
  855.     PaperPositionMode     "auto"
  856.     PaperType     "usletter"
  857.     PaperUnits     "inches"
  858.     ZoomFactor     "100"
  859.     Block {
  860.       BlockType       "S-Function"
  861.       Name       "S-function1"
  862.       Ports       [0, 1]
  863.       Position       [40, 31, 105, 59]
  864.       FunctionName       "homopuls"
  865.       Parameters       "samp_time, out_divid, offset"
  866.     }
  867.     Block {
  868.       BlockType       Outport
  869.       Name       "Outport"
  870.       Position       [160, 35, 180, 55]
  871.     }
  872.     Line {
  873.       SrcBlock       "S-function1"
  874.       SrcPort       1
  875.       DstBlock       "Outport"
  876.       DstPort       1
  877.     }
  878.   }
  879. }
  880. Block {
  881.   BlockType   Outport
  882.   Name   "out_1"
  883.   Position   [330, 40, 350, 60]
  884. }
  885. Line {
  886.   SrcBlock   "Filter"
  887.   SrcPort   1
  888.   DstBlock   "out_1"
  889.   DstPort   1
  890. }
  891. Line {
  892.   SrcBlock   "in_1"
  893.   SrcPort   1
  894.   DstBlock   "Memory Impulse"
  895.   DstPort   1
  896. }
  897. Line {
  898.   SrcBlock   "Memory Impulse"
  899.   SrcPort   1
  900.   DstBlock   "Filter"
  901.   DstPort   1
  902. }
  903. Line {
  904.   SrcBlock   "Pulses deividensame sample time1"
  905.   SrcPort   1
  906.   Points   [15, 0; 0, -30]
  907.   DstBlock   "Memory Impulse"
  908.   DstPort   2
  909. }
  910.       }
  911.     }
  912.     Block {
  913.       BlockType       SubSystem
  914.       Name       "Root-RCntransmit filter"
  915.       Ports       [1, 1]
  916.       Position       [85, 103, 165, 147]
  917.       ShowPortLabels       off
  918.       TreatAsAtomicUnit       off
  919.       MaskType       "R-C filter"
  920.       MaskDescription       "Design a raised cosine filter and use it to fil"
  921. "ter the input signal."
  922.       MaskHelp       "This block designs a raised cosine filter using"
  923. " the specified parameter. The filter is used to filter the input signal. You "
  924. "can optionally use the sinc filter in the filtering computation."
  925.       MaskPromptString       "Symbol interval (sec):|Computation sampling tim"
  926. "e (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interv"
  927. "al):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter"
  928. " (1 or 0, suggest 1):"
  929.       MaskStyleString       "edit,edit,edit,edit,edit,edit"
  930.       MaskTunableValueString  "on,on,on,on,on,on"
  931.       MaskCallbackString      "|||||"
  932.       MaskEnableString       "on,on,on,on,on,on"
  933.       MaskVisibilityString    "on,on,on,on,on,on"
  934.       MaskToolTipString       "on,on,on,on,on,on"
  935.       MaskVarAliasString      ",,,,,"
  936.       MaskInitialization      "td=@1;if length(td)>1,off=td(2);td=td(1);else,o"
  937. "ff=0;end;ts=@2;R=@3;delay=@4;fil=@5;[num,den]=rcosine(1/td(1),1/ts(1),fil,R,d"
  938. "elay);x=@6/2;"
  939.       MaskDisplay       "disp('R-C\nfilter')"
  940.       MaskIconFrame       on
  941.       MaskIconOpaque       on
  942.       MaskIconRotate       "none"
  943.       MaskIconUnits       "autoscale"
  944.       MaskValueString       "1|.05|0.5|6|'FIR/Sqrt'|1"
  945.       System {
  946. Name "Root-RCntransmit filter"
  947. Location [131, 545, 589, 761]
  948. Open off
  949. ModelBrowserVisibility off
  950. ModelBrowserWidth 200
  951. ScreenColor "white"
  952. PaperOrientation "landscape"
  953. PaperPositionMode "auto"
  954. PaperType "usletter"
  955. PaperUnits "inches"
  956. ZoomFactor "100"
  957. Block {
  958.   BlockType   Inport
  959.   Name   "in_1"
  960.   Position   [35, 30, 55, 50]
  961. }
  962. Block {
  963.   BlockType   DiscreteFilter
  964.   Name   "Filter"
  965.   Position   [255, 31, 310, 69]
  966.   Numerator   "num"
  967.   Denominator   "den"
  968.   SampleTime   "ts"
  969. }
  970. Block {
  971.   BlockType   SubSystem
  972.   Name   "Memory Impulse"
  973.   Ports   [2, 1]
  974.   Position   [155, 30, 225, 70]
  975.   ShowPortLabels   off
  976.   TreatAsAtomicUnit   off
  977.   MaskType   "Impulse"
  978.   MaskDescription   "1/sinc filter:"
  979.   MaskHelp   "When the threshold is greater than zero, th"
  980. "is block outputs an impulse signal, which begins at the raising edge of the s"
  981. "econd input and lasts the holding time. The impulse holds a constant amplitud"
  982. "e, which equals the amplitude of the first input at the begining of the impul"
  983. "se. A clock raising edge will trigger next impulse. When the threshold is les"
  984. "s or equal to zero, this block faithfully outputs the first input."
  985.   MaskPromptString   "Holding time:|Threshold for clock pulse: "
  986.   MaskStyleString   "edit,edit"
  987.   MaskTunableValueString  "on,on"
  988.   MaskCallbackString   "|"
  989.   MaskEnableString   "on,on"
  990.   MaskVisibilityString   "on,on"
  991.   MaskToolTipString   "on,on"
  992.   MaskVarAliasString   ","
  993.   MaskInitialization   "ts=@1;thr=@2;x=thr>0;"
  994.   MaskDisplay   "disp('1/sinc')"
  995.   MaskIconFrame   on
  996.   MaskIconOpaque   on
  997.   MaskIconRotate   "none"
  998.   MaskIconUnits   "autoscale"
  999.   MaskValueString   "ts|x"
  1000.   System {
  1001.     Name     "Memory Impulse"
  1002.     Location     [541, 520, 939, 745]
  1003.     Open     off
  1004.     ModelBrowserVisibility  off
  1005.     ModelBrowserWidth     200
  1006.     ScreenColor     "white"
  1007.     PaperOrientation     "landscape"
  1008.     PaperPositionMode     "auto"
  1009.     PaperType     "usletter"
  1010.     PaperUnits     "inches"
  1011.     ZoomFactor     "100"
  1012.     Block {
  1013.       BlockType       Inport
  1014.       Name       "in_1"
  1015.       Position       [35, 185, 55, 205]
  1016.     }
  1017.     Block {
  1018.       BlockType       Inport
  1019.       Name       "in_2"
  1020.       Position       [25, 30, 45, 50]
  1021.       Port       "2"
  1022.     }
  1023.     Block {
  1024.       BlockType       Constant
  1025.       Name       "Constant"
  1026.       Position       [210, 155, 230, 175]
  1027.       Value       "x"
  1028.     }
  1029.     Block {
  1030.       BlockType       Product
  1031.       Name       "Product"
  1032.       Ports       [2, 1]
  1033.       Position       [155, 90, 180, 110]
  1034.     }
  1035.     Block {
  1036.       BlockType       Switch
  1037.       Name       "Switch"
  1038.       Position       [295, 124, 320, 156]
  1039.       Threshold       ".5"
  1040.     }
  1041.     Block {
  1042.       BlockType       ZeroOrderHold
  1043.       Name       "Zero-OrdernHold"
  1044.       Position       [205, 84, 240, 116]
  1045.       SampleTime       "ts"
  1046.     }
  1047.     Block {
  1048.       BlockType       SubSystem
  1049.       Name       "discretenRising edgendetector"
  1050.       Ports       [1, 1]
  1051.       Position       [65, 26, 120, 54]
  1052.       ShowPortLabels       off
  1053.       TreatAsAtomicUnit       off
  1054.       MaskType       "Edge Detection"
  1055.       MaskDescription       "Rising edge detection:"
  1056.       MaskHelp       "When the input signal rising edge passe"
  1057. "d the given shreshold, this block outputs one, otherwise outputs zero."
  1058.       MaskPromptString       "Threshold:|Sampling time:"
  1059.       MaskStyleString       "edit,edit"
  1060.       MaskTunableValueString  "on,on"
  1061.       MaskCallbackString      "|"
  1062.       MaskEnableString       "on,on"
  1063.       MaskVisibilityString    "on,on"
  1064.       MaskToolTipString       "on,on"
  1065.       MaskVarAliasString      ","
  1066.       MaskInitialization      "thld=@1;ts=@2;"
  1067.       MaskDisplay       "disp('Edge\nDetector')"
  1068.       MaskIconFrame       on
  1069.       MaskIconOpaque       on
  1070.       MaskIconRotate       "none"
  1071.       MaskIconUnits       "autoscale"
  1072.       MaskValueString       "thr|ts"
  1073.       System {
  1074. Name "discretenRising edgendetector"
  1075. Location [419, 521, 808, 713]
  1076. Open off
  1077. ModelBrowserVisibility off
  1078. ModelBrowserWidth 200
  1079. ScreenColor "white"
  1080. PaperOrientation "landscape"
  1081. PaperPositionMode "auto"
  1082. PaperType "usletter"
  1083. PaperUnits "inches"
  1084. ZoomFactor "100"
  1085. Block {
  1086.   BlockType   Inport
  1087.   Name   "in_1"
  1088.   Position   [10, 15, 30, 35]
  1089. }
  1090. Block {
  1091.   BlockType   RelationalOperator
  1092.   Name   "RelationalnOperator"
  1093.   Position   [135, 18, 165, 42]
  1094. }
  1095. Block {
  1096.   BlockType   RelationalOperator
  1097.   Name   "RelationalnOperator1"
  1098.   Position   [200, 88, 230, 112]
  1099. }
  1100. Block {
  1101.   BlockType   RelationalOperator
  1102.   Name   "RelationalnOperator2"
  1103.   Position   [265, 23, 295, 47]
  1104.   Operator   ">"
  1105. }
  1106. Block {
  1107.   BlockType   UnitDelay
  1108.   Name   "Unit Delay"
  1109.   Position   [120, 87, 170, 103]
  1110.   SampleTime   "ts"
  1111. }
  1112. Block {
  1113.   BlockType   Constant
  1114.   Name   "one1"
  1115.   Position   [30, 135, 60, 155]
  1116.   Value   "thld"
  1117. }
  1118. Block {
  1119.   BlockType   Outport
  1120.   Name   "out_1"
  1121.   Position   [340, 25, 360, 45]
  1122. }
  1123. Line {
  1124.   SrcBlock   "in_1"
  1125.   SrcPort   1
  1126.   Points   [10, 0]
  1127.   Branch {
  1128.     DstBlock     "RelationalnOperator"
  1129.     DstPort     1
  1130.   }
  1131.   Branch {
  1132.     Points     [0, 70]
  1133.     DstBlock     "Unit Delay"
  1134.     DstPort     1
  1135.   }
  1136. }
  1137. Line {
  1138.   SrcBlock   "Unit Delay"
  1139.   SrcPort   1
  1140.   DstBlock   "RelationalnOperator1"
  1141.   DstPort   1
  1142. }
  1143. Line {
  1144.   SrcBlock   "one1"
  1145.   SrcPort   1
  1146.   Points   [35, 0]
  1147.   Branch {
  1148.     Points     [0, -110]
  1149.     DstBlock     "RelationalnOperator"
  1150.     DstPort     2
  1151.   }
  1152.   Branch {
  1153.     Points     [80, 0; 0, -40]
  1154.     DstBlock     "RelationalnOperator1"
  1155.     DstPort     2
  1156.   }
  1157. }
  1158. Line {
  1159.   SrcBlock   "RelationalnOperator"
  1160.   SrcPort   1
  1161.   DstBlock   "RelationalnOperator2"
  1162.   DstPort   1
  1163. }
  1164. Line {
  1165.   SrcBlock   "RelationalnOperator1"
  1166.   SrcPort   1
  1167.   Points   [5, 0; 0, -60]
  1168.   DstBlock   "RelationalnOperator2"
  1169.   DstPort   2
  1170. }
  1171. Line {
  1172.   SrcBlock   "RelationalnOperator2"
  1173.   SrcPort   1
  1174.   DstBlock   "out_1"
  1175.   DstPort   1
  1176. }
  1177.       }
  1178.     }
  1179.     Block {
  1180.       BlockType       Outport
  1181.       Name       "out_1"
  1182.       Position       [355, 130, 375, 150]
  1183.     }
  1184.     Line {
  1185.       SrcBlock       "in_2"
  1186.       SrcPort       1
  1187.       DstBlock       "discretenRising edgendetector"
  1188.       DstPort       1
  1189.     }
  1190.     Line {
  1191.       SrcBlock       "discretenRising edgendetector"
  1192.       SrcPort       1
  1193.       Points       [5, 0; 0, 55]
  1194.       DstBlock       "Product"
  1195.       DstPort       1
  1196.     }
  1197.     Line {
  1198.       SrcBlock       "Constant"
  1199.       SrcPort       1
  1200.       Points       [15, 0; 0, -25]
  1201.       DstBlock       "Switch"
  1202.       DstPort       2
  1203.     }
  1204.     Line {
  1205.       SrcBlock       "Switch"
  1206.       SrcPort       1
  1207.       DstBlock       "out_1"
  1208.       DstPort       1
  1209.     }
  1210.     Line {
  1211.       SrcBlock       "in_1"
  1212.       SrcPort       1
  1213.       Points       [35, 0]
  1214.       Branch {
  1215. Points [185, 0]
  1216. DstBlock "Switch"
  1217. DstPort 3
  1218.       }
  1219.       Branch {
  1220. Points [0, -90]
  1221. DstBlock "Product"
  1222. DstPort 2
  1223.       }
  1224.     }
  1225.     Line {
  1226.       SrcBlock       "Product"
  1227.       SrcPort       1
  1228.       DstBlock       "Zero-OrdernHold"
  1229.       DstPort       1
  1230.     }
  1231.     Line {
  1232.       SrcBlock       "Zero-OrdernHold"
  1233.       SrcPort       1
  1234.       Points       [15, 0; 0, 30]
  1235.       DstBlock       "Switch"
  1236.       DstPort       1
  1237.     }
  1238.   }
  1239. }
  1240. Block {
  1241.   BlockType   SubSystem
  1242.   Name   "Pulses deividensame sample time1"
  1243.   Ports   [0, 1]
  1244.   Position   [35, 71, 95, 109]
  1245.   ShowPortLabels   off
  1246.   TreatAsAtomicUnit   off
  1247.   MaskType   "Pulse generator"
  1248.   MaskDescription   "Vector pulses with sample rate of each puls"
  1249. "e as Sample_time ./Divider. "
  1250.   MaskHelp   "This block generator a vector pulses. The o"
  1251. "utput length is the same as the vector defined in "Divider". The ith elemen"
  1252. "t of the output has the sample time Sample_time/Divider(i). All elements in "
  1253. ""Divider" must be integers."
  1254.   MaskPromptString   "Sample time (scalar, sec):|Divider (integer"
  1255. " vector):|Offset (have same dimension as Divider:"
  1256.   MaskStyleString   "edit,edit,edit"
  1257.   MaskTunableValueString  "on,on,on"
  1258.   MaskCallbackString   "||"
  1259.   MaskEnableString   "on,on,on"
  1260.   MaskVisibilityString   "on,on,on"
  1261.   MaskToolTipString   "on,on,on"
  1262.   MaskVarAliasString   ",,"
  1263.   MaskInitialization   "samp_time=@1;out_divid=@2;offset=@3;"
  1264.   MaskDisplay   "disp('Vector\nPulse')"
  1265.   MaskIconFrame   on
  1266.   MaskIconOpaque   on
  1267.   MaskIconRotate   "none"
  1268.   MaskIconUnits   "autoscale"
  1269.   MaskValueString   "td|1|off"
  1270.   System {
  1271.     Name     "Pulses deividensame sample time1"
  1272.     Location     [55, 192, 283, 286]
  1273.     Open     off
  1274.     ModelBrowserVisibility  off
  1275.     ModelBrowserWidth     200
  1276.     ScreenColor     "white"
  1277.     PaperOrientation     "landscape"
  1278.     PaperPositionMode     "auto"
  1279.     PaperType     "usletter"
  1280.     PaperUnits     "inches"
  1281.     ZoomFactor     "100"
  1282.     Block {
  1283.       BlockType       "S-Function"
  1284.       Name       "S-function1"
  1285.       Ports       [0, 1]
  1286.       Position       [40, 31, 105, 59]
  1287.       FunctionName       "homopuls"
  1288.       Parameters       "samp_time, out_divid, offset"
  1289.     }
  1290.     Block {
  1291.       BlockType       Outport
  1292.       Name       "Outport"
  1293.       Position       [160, 35, 180, 55]
  1294.     }
  1295.     Line {
  1296.       SrcBlock       "S-function1"
  1297.       SrcPort       1
  1298.       DstBlock       "Outport"
  1299.       DstPort       1
  1300.     }
  1301.   }
  1302. }
  1303. Block {
  1304.   BlockType   Outport
  1305.   Name   "out_1"
  1306.   Position   [330, 40, 350, 60]
  1307. }
  1308. Line {
  1309.   SrcBlock   "Filter"
  1310.   SrcPort   1
  1311.   DstBlock   "out_1"
  1312.   DstPort   1
  1313. }
  1314. Line {
  1315.   SrcBlock   "in_1"
  1316.   SrcPort   1
  1317.   DstBlock   "Memory Impulse"
  1318.   DstPort   1
  1319. }
  1320. Line {
  1321.   SrcBlock   "Memory Impulse"
  1322.   SrcPort   1
  1323.   DstBlock   "Filter"
  1324.   DstPort   1
  1325. }
  1326. Line {
  1327.   SrcBlock   "Pulses deividensame sample time1"
  1328.   SrcPort   1
  1329.   Points   [15, 0; 0, -30]
  1330.   DstBlock   "Memory Impulse"
  1331.   DstPort   2
  1332. }
  1333.       }
  1334.     }
  1335.     Block {
  1336.       BlockType       SubSystem
  1337.       Name       "Source"
  1338.       Ports       [0, 1]
  1339.       Position       [10, 98, 40, 152]
  1340.       ShowPortLabels       off
  1341.       TreatAsAtomicUnit       off
  1342.       System {
  1343. Name "Source"
  1344. Location [38, 153, 317, 326]
  1345. Open off
  1346. ModelBrowserVisibility off
  1347. ModelBrowserWidth 200
  1348. ScreenColor "white"
  1349. PaperOrientation "landscape"
  1350. PaperPositionMode "auto"
  1351. PaperType "usletter"
  1352. PaperUnits "inches"
  1353. ZoomFactor "100"
  1354. Block {
  1355.   BlockType   Fcn
  1356.   Name   "Fcn"
  1357.   Position   [160, 75, 200, 95]
  1358.   Expr   "1-2*u"
  1359. }
  1360. Block {
  1361.   BlockType   SubSystem
  1362.   Name   "Source"
  1363.   Ports   [0, 1]
  1364.   Position   [70, 63, 135, 107]
  1365.   ShowPortLabels   off
  1366.   TreatAsAtomicUnit   off
  1367.   MaskType   "Read from workspace"
  1368.   MaskDescription   "Read from a workspace variable atnsampling"
  1369. " time point."
  1370.   MaskHelp   "This block reads from a workspace variable "
  1371. "at a given sample time. The column number is the block output vector length. "
  1372. "When the simulation reaches the end of the variable (eof), the block will cyc"
  1373. "lically output from the first row of the variable or output zeros based on th"
  1374. "e repeat flag entree."
  1375.   MaskPromptString   "Variable (column_number=block_output_length"
  1376. "):|Data output sample time (sec):|Repeat flag (1: repeat read, 0: output zero"
  1377. "s after eof).|Initial output:"
  1378.   MaskStyleString   "edit,edit,edit,edit"
  1379.   MaskTunableValueString  "on,on,on,on"
  1380.   MaskCallbackString   "|||"
  1381.   MaskEnableString   "on,on,on,on"
  1382.   MaskVisibilityString   "on,on,on,on"
  1383.   MaskToolTipString   "on,on,on,on"
  1384.   MaskVarAliasString   ",,,"
  1385.   MaskInitialization   "var=@1;td=@2;ts=td(1);if (length(td)>=2),of"
  1386. "f=td(2);else off=0;end;cyc=@3;ini=@4;[x,y]=srcsicon(7);"
  1387.   MaskDisplay   "plot(0,0,100,100,x,y);disp('Rd wksp')"
  1388.   MaskIconFrame   on
  1389.   MaskIconOpaque   on
  1390.   MaskIconRotate   "none"
  1391.   MaskIconUnits   "autoscale"
  1392.   MaskValueString   "randint(1000,1,2)|1|1|1"
  1393.   System {
  1394.     Name     "Source"
  1395.     Location     [355, 528, 737, 675]
  1396.     Open     off
  1397.     ModelBrowserVisibility  off
  1398.     ModelBrowserWidth     200
  1399.     ScreenColor     "white"
  1400.     PaperOrientation     "landscape"
  1401.     PaperPositionMode     "auto"
  1402.     PaperType     "usletter"
  1403.     PaperUnits     "inches"
  1404.     ZoomFactor     "100"
  1405.     Block {
  1406.       BlockType       "S-Function"
  1407.       Name       "Message source"
  1408.       Ports       [1, 1]
  1409.       Position       [180, 53, 255, 97]
  1410.       BackgroundColor       "yellow"
  1411.       FunctionName       "trigwksp"
  1412.       Parameters       "var,thd,cyclFlag,ini"
  1413.       MaskType       "Read from workspace"
  1414.       MaskDescription       "The raising edge of input pulse trigger"
  1415. " the block output the next row from the workspace variable."
  1416.       MaskHelp       "This block reads the data from a worksp"
  1417. "ace variable. The output is refreshed at the raising edge of the input pulse."
  1418.       MaskPromptString       "Read the variable:|Threshold for the in"
  1419. "put pulse:|Cyclic read variable (1) or amend zeros (0).|Output before first t"
  1420. "rigger:"
  1421.       MaskStyleString       "edit,edit,edit,edit"
  1422.       MaskTunableValueString  "on,on,on,on"
  1423.       MaskCallbackString      "|||"
  1424.       MaskEnableString       "on,on,on,on"
  1425.       MaskVisibilityString    "on,on,on,on"
  1426.       MaskToolTipString       "on,on,on,on"
  1427.       MaskVarAliasString      ",,,"
  1428.       MaskInitialization      "var=@1;thd=@2;cyclFlag=@3;ini=@4;"
  1429.       MaskDisplay       "disp('Triggered\nread')"
  1430.       MaskIconFrame       on
  1431.       MaskIconOpaque       on
  1432.       MaskIconRotate       "none"
  1433.       MaskIconUnits       "autoscale"
  1434.       MaskValueString       "var|.1|cyc|ini"
  1435.     }
  1436.     Block {
  1437.       BlockType       SubSystem
  1438.       Name       "Pulses deividensame sample time1"
  1439.       Ports       [0, 1]
  1440.       Position       [50, 56, 110, 94]
  1441.       ShowPortLabels       off
  1442.       TreatAsAtomicUnit       off
  1443.       MaskType       "Pulse generator"
  1444.       MaskDescription       "Vector pulses with sample rate of each "
  1445. "pulse as Sample_time ./Divider. "
  1446.       MaskHelp       "This block generator a vector pulses. T"
  1447. "he output length is the same as the vector defined in "Divider". The ith el"
  1448. "ement of the output has the sample time Sample_time/Divider(i). All elements "
  1449. "in "Divider" must be integers."
  1450.       MaskPromptString       "Sample time (scalar, sec):|Divider (int"
  1451. "eger vector):|Offset (have same dimension as Divider:"
  1452.       MaskStyleString       "edit,edit,edit"
  1453.       MaskTunableValueString  "on,on,on"
  1454.       MaskCallbackString      "||"
  1455.       MaskEnableString       "on,on,on"
  1456.       MaskVisibilityString    "on,on,on"
  1457.       MaskToolTipString       "on,on,on"
  1458.       MaskVarAliasString      ",,"
  1459.       MaskInitialization      "samp_time=@1;out_divid=@2;offset=@3;"
  1460.       MaskDisplay       "disp('Vector\nPulse')"
  1461.       MaskIconFrame       on
  1462.       MaskIconOpaque       on
  1463.       MaskIconRotate       "none"
  1464.       MaskIconUnits       "autoscale"
  1465.       MaskValueString       "ts|1|off"
  1466.       System {
  1467. Name "Pulses deividensame sample time1"
  1468. Location [55, 192, 283, 286]
  1469. Open off
  1470. ModelBrowserVisibility off
  1471. ModelBrowserWidth 200
  1472. ScreenColor "white"
  1473. PaperOrientation "landscape"
  1474. PaperPositionMode "auto"
  1475. PaperType "usletter"
  1476. PaperUnits "inches"
  1477. ZoomFactor "100"
  1478. Block {
  1479.   BlockType   "S-Function"
  1480.   Name   "S-function1"
  1481.   Ports   [0, 1]
  1482.   Position   [40, 31, 105, 59]
  1483.   FunctionName   "homopuls"
  1484.   Parameters   "samp_time, out_divid, offset"
  1485. }
  1486. Block {
  1487.   BlockType   Outport
  1488.   Name   "Outport"
  1489.   Position   [160, 35, 180, 55]
  1490. }
  1491. Line {
  1492.   SrcBlock   "S-function1"
  1493.   SrcPort   1
  1494.   DstBlock   "Outport"
  1495.   DstPort   1
  1496. }
  1497.       }
  1498.     }
  1499.     Block {
  1500.       BlockType       Outport
  1501.       Name       "out_1"
  1502.       Position       [295, 65, 315, 85]
  1503.     }
  1504.     Line {
  1505.       SrcBlock       "Message source"
  1506.       SrcPort       1
  1507.       DstBlock       "out_1"
  1508.       DstPort       1
  1509.     }
  1510.     Line {
  1511.       SrcBlock       "Pulses deividensame sample time1"
  1512.       SrcPort       1
  1513.       DstBlock       "Message source"
  1514.       DstPort       1
  1515.     }
  1516.   }
  1517. }
  1518. Block {
  1519.   BlockType   Outport
  1520.   Name   "out_1"
  1521.   Position   [230, 75, 250, 95]
  1522. }
  1523. Line {
  1524.   SrcBlock   "Source"
  1525.   SrcPort   1
  1526.   DstBlock   "Fcn"
  1527.   DstPort   1
  1528. }
  1529. Line {
  1530.   SrcBlock   "Fcn"
  1531.   SrcPort   1
  1532.   DstBlock   "out_1"
  1533.   DstPort   1
  1534. }
  1535.       }
  1536.     }
  1537.     Block {
  1538.       BlockType       Scope
  1539.       Name       "a(t)"
  1540.       Ports       [1]
  1541.       Position       [85, 205, 115, 235]
  1542.       NamePlacement       "alternate"
  1543.       Location       [113, 512, 1048, 612]
  1544.       Open       off
  1545.       NumInputPorts       "1"
  1546.       List {
  1547. ListType AxesTitles
  1548. axes1 "%<SignalLabel>"
  1549.       }
  1550.       TimeRange       "25.000000"
  1551.       YMin       "-2"
  1552.       YMax       "2"
  1553.       DataFormat       "Array"
  1554.     }
  1555.     Block {
  1556.       BlockType       SubSystem
  1557.       Name       "constellation"
  1558.       Ports       []
  1559.       Position       [15, 14, 100, 51]
  1560.       BackgroundColor       "lightBlue"
  1561.       ShowName       off
  1562.       OpenFcn       "cplotpsk(2)"
  1563.       ShowPortLabels       off
  1564.       TreatAsAtomicUnit       off
  1565.       MaskType       "constellation"
  1566.       MaskDisplay       "disp('Signal Space \n Constellation')"
  1567.       MaskIconFrame       on
  1568.       MaskIconOpaque       on
  1569.       MaskIconRotate       "none"
  1570.       MaskIconUnits       "autoscale"
  1571.       System {
  1572. Name "constellation"
  1573. Location [74, 73, 1338, 1015]
  1574. Open off
  1575. ModelBrowserVisibility off
  1576. ModelBrowserWidth 200
  1577. ScreenColor "cyan"
  1578. PaperOrientation "landscape"
  1579. PaperPositionMode "auto"
  1580. PaperType "usletter"
  1581. PaperUnits "inches"
  1582. ZoomFactor "100"
  1583.       }
  1584.     }
  1585.     Block {
  1586.       BlockType       SubSystem
  1587.       Name       "noise variance"
  1588.       Ports       []
  1589.       Position       [489, 75, 595, 99]
  1590.       BackgroundColor       "lightBlue"
  1591.       ShowName       off
  1592.       OpenFcn       "setnoise"
  1593.       FontSize       12
  1594.       FontAngle       "italic"
  1595.       ShowPortLabels       off
  1596.       TreatAsAtomicUnit       off
  1597.       MaskType       "noise"
  1598.       MaskDisplay       "disp('Noise variance')"
  1599.       MaskIconFrame       on
  1600.       MaskIconOpaque       on
  1601.       MaskIconRotate       "none"
  1602.       MaskIconUnits       "autoscale"
  1603.       System {
  1604. Name "noise variance"
  1605. Location [136, 230, 381, 439]
  1606. Open off
  1607. ModelBrowserVisibility off
  1608. ModelBrowserWidth 200
  1609. ScreenColor "cyan"
  1610. PaperOrientation "landscape"
  1611. PaperPositionMode "auto"
  1612. PaperType "usletter"
  1613. PaperUnits "inches"
  1614. ZoomFactor "100"
  1615.       }
  1616.     }
  1617.     Block {
  1618.       BlockType       Scope
  1619.       Name       "received signal r(t)"
  1620.       Ports       [1]
  1621.       Position       [585, 215, 615, 245]
  1622.       Orientation       "down"
  1623.       Location       [211, 629, 1147, 729]
  1624.       Open       off
  1625.       NumInputPorts       "1"
  1626.       List {
  1627. ListType AxesTitles
  1628. axes1 "%<SignalLabel>"
  1629.       }
  1630.       TimeRange       "25.000000"
  1631.       YMin       "-2"
  1632.       YMax       "2"
  1633.       DataFormat       "Array"
  1634.     }
  1635.     Block {
  1636.       BlockType       SubSystem
  1637.       Name       "receiverndiagrams"
  1638.       Ports       [1]
  1639.       Position       [885, 15, 940, 55]
  1640.       ShowPortLabels       off
  1641.       TreatAsAtomicUnit       off
  1642.       MaskType       "Diagrams"
  1643.       MaskDescription       "Eye pattern, signal space trajectory and scatte"
  1644. "r plot."
  1645.       MaskPromptString       "Plot start time:|Samples per time slot (2*T):|D"
  1646. "ecision offset:"
  1647.       MaskStyleString       "edit,edit,edit"
  1648.       MaskTunableValueString  "on,on,on"
  1649.       MaskCallbackString      "||"
  1650.       MaskEnableString       "on,on,on"
  1651.       MaskVisibilityString    "on,on,on"
  1652.       MaskToolTipString       "on,on,on"
  1653.       MaskVarAliasString      ",,"
  1654.       MaskVariables       "starttime=@1;anzahl=@2;offset=@3;"
  1655.       MaskInitialization      " [x, y] = srcsicon(10);"
  1656.       MaskDisplay       "plot(0,0,100,100,x,y)"
  1657.       MaskIconFrame       on
  1658.       MaskIconOpaque       on
  1659.       MaskIconRotate       "none"
  1660.       MaskIconUnits       "autoscale"
  1661.       MaskValueString       "12|40|0"
  1662.       System {
  1663. Name "receiverndiagrams"
  1664. Location [638, 564, 1007, 805]
  1665. Open off
  1666. ModelBrowserVisibility off
  1667. ModelBrowserWidth 200
  1668. ScreenColor "white"
  1669. PaperOrientation "landscape"
  1670. PaperPositionMode "auto"
  1671. PaperType "usletter"
  1672. PaperUnits "inches"
  1673. ZoomFactor "100"
  1674. Block {
  1675.   BlockType   Inport
  1676.   Name   "in_1"
  1677.   Position   [35, 40, 55, 60]
  1678. }
  1679. Block {
  1680.   BlockType   Constant
  1681.   Name   "Constant"
  1682.   Position   [35, 130, 55, 150]
  1683.   Value   "Inf"
  1684. }
  1685. Block {
  1686.   BlockType   Constant
  1687.   Name   "Constant1"
  1688.   Position   [130, 130, 150, 150]
  1689.   Value   "0"
  1690. }
  1691. Block {
  1692.   BlockType   SubSystem
  1693.   Name   "Eye patternnreceiver"
  1694.   Ports   [1]
  1695.   Position   [275, 37, 330, 73]
  1696.   CopyFcn   "eyesampl([],[],[],'CopyBlock')"
  1697.   DeleteFcn   "eyesampl([],[],[],'DeleteBlock')"
  1698.   LoadFcn   "eyesampl([],[],[],'LoadBlock')"
  1699.   StartFcn   "eyesampl([],[],[],'Start')"
  1700.   StopFcn   "eyesampl([],[],[],'Stop')"
  1701.   NameChangeFcn   "eyesampl([],[],[],'NameChange')"
  1702.   ShowPortLabels   off
  1703.   TreatAsAtomicUnit   off
  1704.   MaskType   "Eye-diagram/scatter plot"
  1705.   MaskDescription   "Produce eye-pattern diagram and/or scatter "
  1706. "plot."
  1707.   MaskHelp   "This plot opens one, or two plots by assign"
  1708. "ing the line type parameters. The scatter plot point is selected by the decis"
  1709. "ion point in the first parameter entry. A decision line is drawn in the eye-p"
  1710. "attern diagram. The plot is updated at the plot update sample time point."
  1711.   MaskPromptString   "[Symbol interval, plot offset, decision poi"
  1712. "nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
  1713. " saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
  1714. "or scatter plot (0 for no plot):|Plot update sample time:"
  1715.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  1716.   MaskTunableValueString  "on,on,on,on,on,on"
  1717.   MaskCallbackString   "|||||"
  1718.   MaskEnableString   "on,on,on,on,on,on"
  1719.   MaskVisibilityString   "on,on,on,on,on,on"
  1720.   MaskToolTipString   "on,on,on,on,on,on"
  1721.   MaskVarAliasString   ",,,,,"
  1722.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  1723. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
  1724.   MaskDisplay   "plot(0,0,100,100,x,y);"
  1725.   MaskIconFrame   on
  1726.   MaskIconOpaque   on
  1727.   MaskIconRotate   "none"
  1728.   MaskIconUnits   "autoscale"
  1729.   MaskValueString   "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2/anz"
  1730. "ahl"
  1731.   System {
  1732.     Name     "Eye patternnreceiver"
  1733.     Location     [121, 409, 416, 595]
  1734.     Open     off
  1735.     ModelBrowserVisibility  off
  1736.     ModelBrowserWidth     200
  1737.     ScreenColor     "white"
  1738.     PaperOrientation     "landscape"
  1739.     PaperPositionMode     "auto"
  1740.     PaperType     "usletter"
  1741.     PaperUnits     "inches"
  1742.     ZoomFactor     "100"
  1743.     Block {
  1744.       BlockType       Inport
  1745.       Name       "in_1"
  1746.       Position       [75, 80, 95, 100]
  1747.     }
  1748.     Block {
  1749.       BlockType       "S-Function"
  1750.       Name       "Plot1"
  1751.       Ports       [1]
  1752.       Position       [130, 70, 200, 110]
  1753.       FunctionName       "eyesampl"
  1754.       Parameters       "time_range, boundary, kept_length, eye_"
  1755. "line, scatter_line, two_d_line"
  1756.     }
  1757.     Line {
  1758.       SrcBlock       "in_1"
  1759.       SrcPort       1
  1760.       DstBlock       "Plot1"
  1761.       DstPort       1
  1762.     }
  1763.   }
  1764. }
  1765. Block {
  1766.   BlockType   Mux
  1767.   Name   "Mux"
  1768.   Ports   [2, 1]
  1769.   Position   [185, 36, 220, 69]
  1770.   Inputs   "2"
  1771. }
  1772. Block {
  1773.   BlockType   Mux
  1774.   Name   "Mux1"
  1775.   Ports   [2, 1]
  1776.   Position   [185, 96, 220, 129]
  1777.   Inputs   "2"
  1778. }
  1779. Block {
  1780.   BlockType   SubSystem
  1781.   Name   "Scatter plotnreceiver"
  1782.   Ports   [1]
  1783.   Position   [275, 173, 330, 207]
  1784.   CopyFcn   "eyesampl([],[],[],'CopyBlock')"
  1785.   DeleteFcn   "eyesampl([],[],[],'DeleteBlock')"
  1786.   LoadFcn   "eyesampl([],[],[],'LoadBlock')"
  1787.   StartFcn   "eyesampl([],[],[],'Start')"
  1788.   StopFcn   "eyesampl([],[],[],'Stop')"
  1789.   NameChangeFcn   "eyesampl([],[],[],'NameChange')"
  1790.   ShowPortLabels   off
  1791.   TreatAsAtomicUnit   off
  1792.   MaskType   "Eye-diagram/scatter plot"
  1793.   MaskDescription   "Produce eye-pattern diagram and/or scatter "
  1794. "plot."
  1795.   MaskHelp   "This plot opens one, or two plots by assign"
  1796. "ing the line type parameters. The scatter plot point is selected by the decis"
  1797. "ion point in the first parameter entry. A decision line is drawn in the eye-p"
  1798. "attern diagram. The plot is updated at the plot update sample time point."
  1799.   MaskPromptString   "[Symbol interval, plot offset, decision poi"
  1800. "nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
  1801. " saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
  1802. "or scatter plot (0 for no plot):|Plot update sample time:"
  1803.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  1804.   MaskTunableValueString  "on,on,on,on,on,on"
  1805.   MaskCallbackString   "|||||"
  1806.   MaskEnableString   "on,on,on,on,on,on"
  1807.   MaskVisibilityString   "on,on,on,on,on,on"
  1808.   MaskToolTipString   "on,on,on,on,on,on"
  1809.   MaskVarAliasString   ",,,,,"
  1810.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  1811. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
  1812.   MaskDisplay   "plot(0,0,100,100,x,y);"
  1813.   MaskIconFrame   on
  1814.   MaskIconOpaque   on
  1815.   MaskIconRotate   "none"
  1816.   MaskIconUnits   "autoscale"
  1817.   MaskValueString   "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 offset]"
  1818.   System {
  1819.     Name     "Scatter plotnreceiver"
  1820.     Location     [165, 242, 460, 428]
  1821.     Open     off
  1822.     ModelBrowserVisibility  off
  1823.     ModelBrowserWidth     200
  1824.     ScreenColor     "white"
  1825.     PaperOrientation     "landscape"
  1826.     PaperPositionMode     "auto"
  1827.     PaperType     "usletter"
  1828.     PaperUnits     "inches"
  1829.     ZoomFactor     "100"
  1830.     Block {
  1831.       BlockType       Inport
  1832.       Name       "in_1"
  1833.       Position       [75, 80, 95, 100]
  1834.     }
  1835.     Block {
  1836.       BlockType       "S-Function"
  1837.       Name       "Plot1"
  1838.       Ports       [1]
  1839.       Position       [130, 70, 200, 110]
  1840.       FunctionName       "eyesampl"
  1841.       Parameters       "time_range, boundary, kept_length, eye_"
  1842. "line, scatter_line, two_d_line"
  1843.     }
  1844.     Line {
  1845.       SrcBlock       "in_1"
  1846.       SrcPort       1
  1847.       DstBlock       "Plot1"
  1848.       DstPort       1
  1849.     }
  1850.   }
  1851. }
  1852. Block {
  1853.   BlockType   Step
  1854.   Name   "Step input"
  1855.   Position   [35, 85, 55, 105]
  1856.   Time   "starttime"
  1857.   SampleTime   "1"
  1858. }
  1859. Block {
  1860.   BlockType   Switch
  1861.   Name   "Switch"
  1862.   Position   [110, 44, 135, 76]
  1863.   Threshold   "1"
  1864. }
  1865. Block {
  1866.   BlockType   SubSystem
  1867.   Name   "Trajectorynreceiver"
  1868.   Ports   [1]
  1869.   Position   [275, 107, 330, 143]
  1870.   CopyFcn   "eyediasi([],[],[],'CopyBlock')"
  1871.   DeleteFcn   "eyediasi([],[],[],'DeleteBlock')"
  1872.   LoadFcn   "eyediasi([],[],[],'LoadBlock')"
  1873.   StartFcn   "eyediasi([],[],[],'Start')"
  1874.   StopFcn   "eyediasi([],[],[],'Stop')"
  1875.   NameChangeFcn   "eyediasi([],[],[],'NameChange')"
  1876.   ShowPortLabels   off
  1877.   TreatAsAtomicUnit   off
  1878.   MaskType   "Eye-diagram/scatter plot"
  1879.   MaskDescription   "Produce eye-pattern diagram/scatternplot/x"
  1880. "-y plot with the rising edge of the second input as the decision line."
  1881.   MaskHelp   "This plot opens one, two, or three plots by"
  1882. " assigning the line type parameters. The scatter plot point is selected by th"
  1883. "e rising edge of a trigger signal. A decision line is drawn at the rising edg"
  1884. "e of the trigger signal."
  1885.   MaskPromptString   "Eye-pattern plot time frame:|Lower and uppe"
  1886. "r bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type f"
  1887. "or eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no "
  1888. "plot):|Line-type for x-y plot (0 for no plot):"
  1889.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  1890.   MaskTunableValueString  "on,on,on,on,on,on"
  1891.   MaskCallbackString   "|||||"
  1892.   MaskEnableString   "on,on,on,on,on,on"
  1893.   MaskVisibilityString   "on,on,on,on,on,on"
  1894.   MaskToolTipString   "on,on,on,on,on,on"
  1895.   MaskVarAliasString   ",,,,,"
  1896.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  1897. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon(0,2"
  1898. "5,get_param(gcb,'orientation'),2);"
  1899.   MaskDisplay   "plot(0,0,100,100,x,y,v,w);"
  1900.   MaskIconFrame   on
  1901.   MaskIconOpaque   on
  1902.   MaskIconRotate   "none"
  1903.   MaskIconUnits   "autoscale"
  1904.   MaskValueString   "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
  1905.   System {
  1906.     Name     "Trajectorynreceiver"
  1907.     Location     [165, 242, 460, 428]
  1908.     Open     off
  1909.     ModelBrowserVisibility  off
  1910.     ModelBrowserWidth     200
  1911.     ScreenColor     "white"
  1912.     PaperOrientation     "landscape"
  1913.     PaperPositionMode     "auto"
  1914.     PaperType     "usletter"
  1915.     PaperUnits     "inches"
  1916.     ZoomFactor     "100"
  1917.     Block {
  1918.       BlockType       Inport
  1919.       Name       "in_1"
  1920.       Position       [15, 55, 35, 75]
  1921.     }
  1922.     Block {
  1923.       BlockType       Constant
  1924.       Name       "Constant"
  1925.       Position       [15, 110, 45, 140]
  1926.       Value       "0"
  1927.     }
  1928.     Block {
  1929.       BlockType       Mux
  1930.       Name       "Mux"
  1931.       Ports       [2, 1]
  1932.       Position       [65, 70, 100, 105]
  1933.       Inputs       "2"
  1934.     }
  1935.     Block {
  1936.       BlockType       "S-Function"
  1937.       Name       "Plot1"
  1938.       Ports       [1]
  1939.       Position       [130, 70, 200, 110]
  1940.       FunctionName       "eyediasi"
  1941.       Parameters       "time_range, boundary, kept_length, eye_"
  1942. "line, scatter_line, two_d_line"
  1943.     }
  1944.     Line {
  1945.       SrcBlock       "Mux"
  1946.       SrcPort       1
  1947.       DstBlock       "Plot1"
  1948.       DstPort       1
  1949.     }
  1950.     Line {
  1951.       SrcBlock       "Constant"
  1952.       SrcPort       1
  1953.       DstBlock       "Mux"
  1954.       DstPort       2
  1955.     }
  1956.     Line {
  1957.       SrcBlock       "in_1"
  1958.       SrcPort       1
  1959.       Points       [5, 0; 0, 15]
  1960.       DstBlock       "Mux"
  1961.       DstPort       1
  1962.     }
  1963.   }
  1964. }
  1965. Line {
  1966.   SrcBlock   "Mux"
  1967.   SrcPort   1
  1968.   DstBlock   "Eye patternnreceiver"
  1969.   DstPort   1
  1970. }
  1971. Line {
  1972.   SrcBlock   "in_1"
  1973.   SrcPort   1
  1974.   DstBlock   "Switch"
  1975.   DstPort   1
  1976. }
  1977. Line {
  1978.   SrcBlock   "Step input"
  1979.   SrcPort   1
  1980.   Points   [15, 0; 0, -35]
  1981.   DstBlock   "Switch"
  1982.   DstPort   2
  1983. }
  1984. Line {
  1985.   SrcBlock   "Constant"
  1986.   SrcPort   1
  1987.   Points   [35, 0]
  1988.   DstBlock   "Switch"
  1989.   DstPort   3
  1990. }
  1991. Line {
  1992.   SrcBlock   "Mux1"
  1993.   SrcPort   1
  1994.   Points   [25, 0]
  1995.   Branch {
  1996.     Points     [10, 0]
  1997.     DstBlock     "Trajectorynreceiver"
  1998.     DstPort     1
  1999.   }
  2000.   Branch {
  2001.     Points     [0, 75]
  2002.     DstBlock     "Scatter plotnreceiver"
  2003.     DstPort     1
  2004.   }
  2005. }
  2006. Line {
  2007.   SrcBlock   "Constant1"
  2008.   SrcPort   1
  2009.   Points   [10, 0; 0, -20]
  2010.   Branch {
  2011.     Points     [0, -75]
  2012.     DstBlock     "Mux"
  2013.     DstPort     1
  2014.   }
  2015.   Branch {
  2016.     DstBlock     "Mux1"
  2017.     DstPort     2
  2018.   }
  2019. }
  2020. Line {
  2021.   SrcBlock   "Switch"
  2022.   SrcPort   1
  2023.   Points   [10, 0]
  2024.   Branch {
  2025.     DstBlock     "Mux"
  2026.     DstPort     2
  2027.   }
  2028.   Branch {
  2029.     Points     [0, 45]
  2030.     DstBlock     "Mux1"
  2031.     DstPort     1
  2032.   }
  2033. }
  2034.       }
  2035.     }
  2036.     Block {
  2037.       BlockType       Scope
  2038.       Name       "s(t)"
  2039.       Ports       [1]
  2040.       Position       [210, 205, 240, 235]
  2041.       Orientation       "down"
  2042.       Location       [113, 667, 1048, 767]
  2043.       Open       off
  2044.       NumInputPorts       "1"
  2045.       List {
  2046. ListType AxesTitles
  2047. axes1 "%<SignalLabel>"
  2048.       }
  2049.       TimeRange       "25.000000"
  2050.       YMin       "-2"
  2051.       YMax       "2"
  2052.       DataFormat       "Array"
  2053.     }
  2054.     Block {
  2055.       BlockType       Scope
  2056.       Name       "s_r(t)"
  2057.       Ports       [1]
  2058.       Position       [830, 180, 860, 210]
  2059.       Orientation       "down"
  2060.       Location       [211, 721, 1147, 821]
  2061.       Open       off
  2062.       NumInputPorts       "1"
  2063.       List {
  2064. ListType AxesTitles
  2065. axes1 "%<SignalLabel>"
  2066.       }
  2067.       TimeRange       "25.000000"
  2068.       YMin       "-2"
  2069.       YMax       "2"
  2070.       DataFormat       "Array"
  2071.     }
  2072.     Block {
  2073.       BlockType       Scope
  2074.       Name       "sink signal v(t)"
  2075.       Ports       [1]
  2076.       Position       [990, 110, 1020, 140]
  2077.       Location       [211, 794, 1147, 894]
  2078.       Open       off
  2079.       NumInputPorts       "1"
  2080.       List {
  2081. ListType AxesTitles
  2082. axes1 "%<SignalLabel>"
  2083.       }
  2084.       TimeRange       "25.000000"
  2085.       YMin       "-2"
  2086.       YMax       "2"
  2087.       DataFormat       "Array"
  2088.     }
  2089.     Block {
  2090.       BlockType       SubSystem
  2091.       Name       "thresholdndetector"
  2092.       Ports       [1, 1]
  2093.       Position       [890, 112, 920, 138]
  2094.       ShowPortLabels       off
  2095.       TreatAsAtomicUnit       off
  2096.       MaskType       "Sign"
  2097.       MaskDescription       "y = sign(x)"
  2098.       MaskHelp       "Sign Function:\n\t\t\ty = 1 if x > 0\n\t"
  2099. "\t\ty = 0 if x = 0\n\t\t\ty = -1 if x < 0"
  2100.       MaskDisplay       "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50"
  2101. "],[-40,0],[-30,-30],[0,40],[30,30])"
  2102.       MaskIconFrame       on
  2103.       MaskIconOpaque       on
  2104.       MaskIconRotate       "none"
  2105.       MaskIconUnits       "autoscale"
  2106.       System {
  2107. Name "thresholdndetector"
  2108. Location [159, 417, 467, 586]
  2109. Open off
  2110. ModelBrowserVisibility off
  2111. ModelBrowserWidth 200
  2112. ScreenColor "white"
  2113. PaperOrientation "landscape"
  2114. PaperPositionMode "auto"
  2115. PaperType "usletter"
  2116. PaperUnits "inches"
  2117. ZoomFactor "100"
  2118. Block {
  2119.   BlockType   Inport
  2120.   Name   "in_1"
  2121.   Position   [35, 30, 55, 50]
  2122. }
  2123. Block {
  2124.   BlockType   Constant
  2125.   Name   "Constant"
  2126.   Position   [65, 105, 85, 125]
  2127.   Value   "0"
  2128. }
  2129. Block {
  2130.   BlockType   RelationalOperator
  2131.   Name   "RelationalnOperator"
  2132.   Position   [140, 32, 170, 63]
  2133.   Operator   ">"
  2134. }
  2135. Block {
  2136.   BlockType   RelationalOperator
  2137.   Name   "RelationalnOperator1"
  2138.   Position   [140, 92, 170, 123]
  2139.   Operator   "<"
  2140. }
  2141. Block {
  2142.   BlockType   Sum
  2143.   Name   "Sum"
  2144.   Ports   [2, 1]
  2145.   Position   [215, 64, 235, 91]
  2146.   Inputs   "+-"
  2147. }
  2148. Block {
  2149.   BlockType   Outport
  2150.   Name   "out_1"
  2151.   Position   [265, 70, 285, 90]
  2152. }
  2153. Line {
  2154.   SrcBlock   "Sum"
  2155.   SrcPort   1
  2156.   DstBlock   "out_1"
  2157.   DstPort   1
  2158. }
  2159. Line {
  2160.   SrcBlock   "RelationalnOperator"
  2161.   SrcPort   1
  2162.   Points   [10, 0; 0, 20]
  2163.   DstBlock   "Sum"
  2164.   DstPort   1
  2165. }
  2166. Line {
  2167.   SrcBlock   "RelationalnOperator1"
  2168.   SrcPort   1
  2169.   Points   [10, 0; 0, -25]
  2170.   DstBlock   "Sum"
  2171.   DstPort   2
  2172. }
  2173. Line {
  2174.   SrcBlock   "Constant"
  2175.   SrcPort   1
  2176.   Points   [20, 0]
  2177.   Branch {
  2178.     DstBlock     "RelationalnOperator1"
  2179.     DstPort     2
  2180.   }
  2181.   Branch {
  2182.     Points     [0, -60]
  2183.     DstBlock     "RelationalnOperator"
  2184.     DstPort     2
  2185.   }
  2186. }
  2187. Line {
  2188.   SrcBlock   "in_1"
  2189.   SrcPort   1
  2190.   Points   [35, 0]
  2191.   Branch {
  2192.     DstBlock     "RelationalnOperator"
  2193.     DstPort     1
  2194.   }
  2195.   Branch {
  2196.     Points     [0, 60]
  2197.     DstBlock     "RelationalnOperator1"
  2198.     DstPort     1
  2199.   }
  2200. }
  2201.       }
  2202.     }
  2203.     Block {
  2204.       BlockType       Scope
  2205.       Name       "transmitted signal u(t)"
  2206.       Ports       [1]
  2207.       Position       [445, 180, 475, 210]
  2208.       Orientation       "down"
  2209.       Location       [119, 821, 1055, 921]
  2210.       Open       off
  2211.       NumInputPorts       "1"
  2212.       List {
  2213. ListType AxesTitles
  2214. axes1 "%<SignalLabel>"
  2215.       }
  2216.       TimeRange       "25.000000"
  2217.       YMin       "-2"
  2218.       YMax       "2"
  2219.       DataFormat       "Array"
  2220.     }
  2221.     Block {
  2222.       BlockType       SubSystem
  2223.       Name       "transmitterndiagrams"
  2224.       Ports       [1]
  2225.       Position       [270, 20, 325, 60]
  2226.       ShowPortLabels       off
  2227.       TreatAsAtomicUnit       off
  2228.       MaskType       "Diagrams"
  2229.       MaskDescription       "Eye pattern,  signal-space trajectory and scatt"
  2230. "er plot"
  2231.       MaskPromptString       "Plot start time:|samples per time slot|decision"
  2232. " offset"
  2233.       MaskStyleString       "edit,edit,edit"
  2234.       MaskTunableValueString  "on,on,on"
  2235.       MaskCallbackString      "||"
  2236.       MaskEnableString       "on,on,on"
  2237.       MaskVisibilityString    "on,on,on"
  2238.       MaskToolTipString       "on,on,on"
  2239.       MaskVarAliasString      ",,"
  2240.       MaskVariables       "starttime=@1;anzahl=@2;offset=@3;"
  2241.       MaskInitialization      " [x, y] = srcsicon(10);"
  2242.       MaskDisplay       "plot(0,0,100,100,x,y)"
  2243.       MaskIconFrame       on
  2244.       MaskIconOpaque       on
  2245.       MaskIconRotate       "none"
  2246.       MaskIconUnits       "autoscale"
  2247.       MaskValueString       "6|40|0"
  2248.       System {
  2249. Name "transmitterndiagrams"
  2250. Location [475, 310, 844, 551]
  2251. Open off
  2252. ModelBrowserVisibility off
  2253. ModelBrowserWidth 200
  2254. ScreenColor "white"
  2255. PaperOrientation "landscape"
  2256. PaperPositionMode "auto"
  2257. PaperType "usletter"
  2258. PaperUnits "inches"
  2259. ZoomFactor "100"
  2260. Block {
  2261.   BlockType   Inport
  2262.   Name   "in_1"
  2263.   Position   [35, 40, 55, 60]
  2264. }
  2265. Block {
  2266.   BlockType   Constant
  2267.   Name   "Constant"
  2268.   Position   [35, 130, 55, 150]
  2269.   Value   "Inf"
  2270. }
  2271. Block {
  2272.   BlockType   Constant
  2273.   Name   "Constant1"
  2274.   Position   [130, 130, 150, 150]
  2275.   Value   "0"
  2276. }
  2277. Block {
  2278.   BlockType   SubSystem
  2279.   Name   "Eye pattern ntransmitter"
  2280.   Ports   [1]
  2281.   Position   [275, 37, 330, 73]
  2282.   CopyFcn   "eyesampl([],[],[],'CopyBlock')"
  2283.   DeleteFcn   "eyesampl([],[],[],'DeleteBlock')"
  2284.   LoadFcn   "eyesampl([],[],[],'LoadBlock')"
  2285.   StartFcn   "eyesampl([],[],[],'Start')"
  2286.   StopFcn   "eyesampl([],[],[],'Stop')"
  2287.   NameChangeFcn   "eyesampl([],[],[],'NameChange')"
  2288.   ShowPortLabels   off
  2289.   TreatAsAtomicUnit   off
  2290.   MaskType   "Eye-diagram/scatter plot"
  2291.   MaskDescription   "Produce eye-pattern diagram and/or scatter "
  2292. "plot."
  2293.   MaskHelp   "This plot opens one, or two plots by assign"
  2294. "ing the line type parameters. The scatter plot point is selected by the decis"
  2295. "ion point in the first parameter entry. A decision line is drawn in the eye-p"
  2296. "attern diagram. The plot is updated at the plot update sample time point."
  2297.   MaskPromptString   "[Symbol interval, plot offset, decision poi"
  2298. "nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
  2299. " saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
  2300. "or scatter plot (0 for no plot):|Plot update sample time:"
  2301.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  2302.   MaskTunableValueString  "on,on,on,on,on,on"
  2303.   MaskCallbackString   "|||||"
  2304.   MaskEnableString   "on,on,on,on,on,on"
  2305.   MaskVisibilityString   "on,on,on,on,on,on"
  2306.   MaskToolTipString   "on,on,on,on,on,on"
  2307.   MaskVarAliasString   ",,,,,"
  2308.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  2309. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
  2310.   MaskDisplay   "plot(0,0,100,100,x,y);"
  2311.   MaskIconFrame   on
  2312.   MaskIconOpaque   on
  2313.   MaskIconRotate   "none"
  2314.   MaskIconUnits   "autoscale"
  2315.   MaskValueString   "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2/anz"
  2316. "ahl"
  2317.   System {
  2318.     Name     "Eye pattern ntransmitter"
  2319.     Location     [121, 409, 416, 595]
  2320.     Open     off
  2321.     ModelBrowserVisibility  off
  2322.     ModelBrowserWidth     200
  2323.     ScreenColor     "white"
  2324.     PaperOrientation     "landscape"
  2325.     PaperPositionMode     "auto"
  2326.     PaperType     "usletter"
  2327.     PaperUnits     "inches"
  2328.     ZoomFactor     "100"
  2329.     Block {
  2330.       BlockType       Inport
  2331.       Name       "in_1"
  2332.       Position       [75, 80, 95, 100]
  2333.     }
  2334.     Block {
  2335.       BlockType       "S-Function"
  2336.       Name       "Plot1"
  2337.       Ports       [1]
  2338.       Position       [130, 70, 200, 110]
  2339.       FunctionName       "eyesampl"
  2340.       Parameters       "time_range, boundary, kept_length, eye_"
  2341. "line, scatter_line, two_d_line"
  2342.     }
  2343.     Line {
  2344.       SrcBlock       "in_1"
  2345.       SrcPort       1
  2346.       DstBlock       "Plot1"
  2347.       DstPort       1
  2348.     }
  2349.   }
  2350. }
  2351. Block {
  2352.   BlockType   Mux
  2353.   Name   "Mux"
  2354.   Ports   [2, 1]
  2355.   Position   [185, 36, 220, 69]
  2356.   Inputs   "2"
  2357. }
  2358. Block {
  2359.   BlockType   Mux
  2360.   Name   "Mux1"
  2361.   Ports   [2, 1]
  2362.   Position   [185, 96, 220, 129]
  2363.   Inputs   "2"
  2364. }
  2365. Block {
  2366.   BlockType   SubSystem
  2367.   Name   "Scatter plotntransmitter"
  2368.   Ports   [1]
  2369.   Position   [275, 173, 330, 207]
  2370.   CopyFcn   "eyesampl([],[],[],'CopyBlock')"
  2371.   DeleteFcn   "eyesampl([],[],[],'DeleteBlock')"
  2372.   LoadFcn   "eyesampl([],[],[],'LoadBlock')"
  2373.   StartFcn   "eyesampl([],[],[],'Start')"
  2374.   StopFcn   "eyesampl([],[],[],'Stop')"
  2375.   NameChangeFcn   "eyesampl([],[],[],'NameChange')"
  2376.   ShowPortLabels   off
  2377.   TreatAsAtomicUnit   off
  2378.   MaskType   "Eye-diagram/scatter plot"
  2379.   MaskDescription   "Produce eye-pattern diagram and/or scatter "
  2380. "plot."
  2381.   MaskHelp   "This plot opens one, or two plots by assign"
  2382. "ing the line type parameters. The scatter plot point is selected by the decis"
  2383. "ion point in the first parameter entry. A decision line is drawn in the eye-p"
  2384. "attern diagram. The plot is updated at the plot update sample time point."
  2385.   MaskPromptString   "[Symbol interval, plot offset, decision poi"
  2386. "nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
  2387. " saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
  2388. "or scatter plot (0 for no plot):|Plot update sample time:"
  2389.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  2390.   MaskTunableValueString  "on,on,on,on,on,on"
  2391.   MaskCallbackString   "|||||"
  2392.   MaskEnableString   "on,on,on,on,on,on"
  2393.   MaskVisibilityString   "on,on,on,on,on,on"
  2394.   MaskToolTipString   "on,on,on,on,on,on"
  2395.   MaskVarAliasString   ",,,,,"
  2396.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  2397. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
  2398.   MaskDisplay   "plot(0,0,100,100,x,y);"
  2399.   MaskIconFrame   on
  2400.   MaskIconOpaque   on
  2401.   MaskIconRotate   "none"
  2402.   MaskIconUnits   "autoscale"
  2403.   MaskValueString   "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 offset]"
  2404.   System {
  2405.     Name     "Scatter plotntransmitter"
  2406.     Location     [165, 242, 460, 428]
  2407.     Open     off
  2408.     ModelBrowserVisibility  off
  2409.     ModelBrowserWidth     200
  2410.     ScreenColor     "white"
  2411.     PaperOrientation     "landscape"
  2412.     PaperPositionMode     "auto"
  2413.     PaperType     "usletter"
  2414.     PaperUnits     "inches"
  2415.     ZoomFactor     "100"
  2416.     Block {
  2417.       BlockType       Inport
  2418.       Name       "in_1"
  2419.       Position       [75, 80, 95, 100]
  2420.     }
  2421.     Block {
  2422.       BlockType       "S-Function"
  2423.       Name       "Plot1"
  2424.       Ports       [1]
  2425.       Position       [130, 70, 200, 110]
  2426.       FunctionName       "eyesampl"
  2427.       Parameters       "time_range, boundary, kept_length, eye_"
  2428. "line, scatter_line, two_d_line"
  2429.     }
  2430.     Line {
  2431.       SrcBlock       "in_1"
  2432.       SrcPort       1
  2433.       DstBlock       "Plot1"
  2434.       DstPort       1
  2435.     }
  2436.   }
  2437. }
  2438. Block {
  2439.   BlockType   Step
  2440.   Name   "Step input"
  2441.   Position   [35, 85, 55, 105]
  2442.   Time   "starttime"
  2443.   SampleTime   "1"
  2444. }
  2445. Block {
  2446.   BlockType   Switch
  2447.   Name   "Switch"
  2448.   Position   [110, 44, 135, 76]
  2449.   Threshold   "1"
  2450. }
  2451. Block {
  2452.   BlockType   SubSystem
  2453.   Name   "Trajectoryntransmitter"
  2454.   Ports   [1]
  2455.   Position   [275, 107, 330, 143]
  2456.   CopyFcn   "eyediasi([],[],[],'CopyBlock')"
  2457.   DeleteFcn   "eyediasi([],[],[],'DeleteBlock')"
  2458.   LoadFcn   "eyediasi([],[],[],'LoadBlock')"
  2459.   StartFcn   "eyediasi([],[],[],'Start')"
  2460.   StopFcn   "eyediasi([],[],[],'Stop')"
  2461.   NameChangeFcn   "eyediasi([],[],[],'NameChange')"
  2462.   ShowPortLabels   off
  2463.   TreatAsAtomicUnit   off
  2464.   MaskType   "Eye-diagram/scatter plot"
  2465.   MaskDescription   "Produce eye-pattern diagram/scatternplot/x"
  2466. "-y plot with the rising edge of the second input as the decision line."
  2467.   MaskHelp   "This plot opens one, two, or three plots by"
  2468. " assigning the line type parameters. The scatter plot point is selected by th"
  2469. "e rising edge of a trigger signal. A decision line is drawn at the rising edg"
  2470. "e of the trigger signal."
  2471.   MaskPromptString   "Eye-pattern plot time frame:|Lower and uppe"
  2472. "r bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type f"
  2473. "or eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no "
  2474. "plot):|Line-type for x-y plot (0 for no plot):"
  2475.   MaskStyleString   "edit,edit,edit,edit,edit,edit"
  2476.   MaskTunableValueString  "on,on,on,on,on,on"
  2477.   MaskCallbackString   "|||||"
  2478.   MaskEnableString   "on,on,on,on,on,on"
  2479.   MaskVisibilityString   "on,on,on,on,on,on"
  2480.   MaskToolTipString   "on,on,on,on,on,on"
  2481.   MaskVarAliasString   ",,,,,"
  2482.   MaskInitialization   "time_range=@1;boundary=@2;kept_length=@3;ey"
  2483. "e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon(0,2"
  2484. "5,get_param(gcb,'orientation'),2);"
  2485.   MaskDisplay   "plot(0,0,100,100,x,y,v,w);"
  2486.   MaskIconFrame   on
  2487.   MaskIconOpaque   on
  2488.   MaskIconRotate   "none"
  2489.   MaskIconUnits   "autoscale"
  2490.   MaskValueString   "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
  2491.   System {
  2492.     Name     "Trajectoryntransmitter"
  2493.     Location     [165, 242, 460, 428]
  2494.     Open     off
  2495.     ModelBrowserVisibility  off
  2496.     ModelBrowserWidth     200
  2497.     ScreenColor     "white"
  2498.     PaperOrientation     "landscape"
  2499.     PaperPositionMode     "auto"
  2500.     PaperType     "usletter"
  2501.     PaperUnits     "inches"
  2502.     ZoomFactor     "100"
  2503.     Block {
  2504.       BlockType       Inport
  2505.       Name       "in_1"
  2506.       Position       [15, 55, 35, 75]
  2507.     }
  2508.     Block {
  2509.       BlockType       Constant
  2510.       Name       "Constant"
  2511.       Position       [15, 110, 45, 140]
  2512.       Value       "0"
  2513.     }
  2514.     Block {
  2515.       BlockType       Mux
  2516.       Name       "Mux"
  2517.       Ports       [2, 1]
  2518.       Position       [65, 70, 100, 105]
  2519.       Inputs       "2"
  2520.     }
  2521.     Block {
  2522.       BlockType       "S-Function"
  2523.       Name       "Plot1"
  2524.       Ports       [1]
  2525.       Position       [130, 70, 200, 110]
  2526.       FunctionName       "eyediasi"
  2527.       Parameters       "time_range, boundary, kept_length, eye_"
  2528. "line, scatter_line, two_d_line"
  2529.     }
  2530.     Line {
  2531.       SrcBlock       "in_1"
  2532.       SrcPort       1
  2533.       Points       [5, 0; 0, 15]
  2534.       DstBlock       "Mux"
  2535.       DstPort       1
  2536.     }
  2537.     Line {
  2538.       SrcBlock       "Constant"
  2539.       SrcPort       1
  2540.       DstBlock       "Mux"
  2541.       DstPort       2
  2542.     }
  2543.     Line {
  2544.       SrcBlock       "Mux"
  2545.       SrcPort       1
  2546.       DstBlock       "Plot1"
  2547.       DstPort       1
  2548.     }
  2549.   }
  2550. }
  2551. Line {
  2552.   SrcBlock   "Switch"
  2553.   SrcPort   1
  2554.   Points   [10, 0]
  2555.   Branch {
  2556.     DstBlock     "Mux"
  2557.     DstPort     2
  2558.   }
  2559.   Branch {
  2560.     Points     [0, 45]
  2561.     DstBlock     "Mux1"
  2562.     DstPort     1
  2563.   }
  2564. }
  2565. Line {
  2566.   SrcBlock   "Constant1"
  2567.   SrcPort   1
  2568.   Points   [10, 0; 0, -20]
  2569.   Branch {
  2570.     Points     [0, -75]
  2571.     DstBlock     "Mux"
  2572.     DstPort     1
  2573.   }
  2574.   Branch {
  2575.     DstBlock     "Mux1"
  2576.     DstPort     2
  2577.   }
  2578. }
  2579. Line {
  2580.   SrcBlock   "Mux1"
  2581.   SrcPort   1
  2582.   Points   [25, 0]
  2583.   Branch {
  2584.     Points     [10, 0]
  2585.     DstBlock     "Trajectoryntransmitter"
  2586.     DstPort     1
  2587.   }
  2588.   Branch {
  2589.     Points     [0, 75]
  2590.     DstBlock     "Scatter plotntransmitter"
  2591.     DstPort     1
  2592.   }
  2593. }
  2594. Line {
  2595.   SrcBlock   "Constant"
  2596.   SrcPort   1
  2597.   Points   [35, 0]
  2598.   DstBlock   "Switch"
  2599.   DstPort   3
  2600. }
  2601. Line {
  2602.   SrcBlock   "Step input"
  2603.   SrcPort   1
  2604.   Points   [15, 0; 0, -35]
  2605.   DstBlock   "Switch"
  2606.   DstPort   2
  2607. }
  2608. Line {
  2609.   SrcBlock   "in_1"
  2610.   SrcPort   1
  2611.   DstBlock   "Switch"
  2612.   DstPort   1
  2613. }
  2614. Line {
  2615.   SrcBlock   "Mux"
  2616.   SrcPort   1
  2617.   DstBlock   "Eye pattern ntransmitter"
  2618.   DstPort   1
  2619. }
  2620.       }
  2621.     }
  2622.     Block {
  2623.       BlockType       Scope
  2624.       Name       "x(t)"
  2625.       Ports       [1]
  2626.       Position       [675, 180, 705, 210]
  2627.       Orientation       "down"
  2628.       Location       [211, 637, 1147, 737]
  2629.       Open       off
  2630.       NumInputPorts       "1"
  2631.       List {
  2632. ListType AxesTitles
  2633. axes1 "%<SignalLabel>"
  2634.       }
  2635.       TimeRange       "25.000000"
  2636.       YMin       "-2"
  2637.       YMax       "2"
  2638.       DataFormat       "Array"
  2639.     }
  2640.     Line {
  2641.       SrcBlock       "Clock"
  2642.       SrcPort       1
  2643.       DstBlock       "Fcn1"
  2644.       DstPort       1
  2645.     }
  2646.     Line {
  2647.       SrcBlock       "Fcn"
  2648.       SrcPort       1
  2649.       DstBlock       "Product1"
  2650.       DstPort       1
  2651.     }
  2652.     Line {
  2653.       SrcBlock       "Clock1"
  2654.       SrcPort       1
  2655.       DstBlock       "Fcn"
  2656.       DstPort       1
  2657.     }
  2658.     Line {
  2659.       SrcBlock       "thresholdndetector"
  2660.       SrcPort       1
  2661.       Points       [25, 0]
  2662.       Branch {
  2663. DstBlock "sink signal v(t)"
  2664. DstPort 1
  2665.       }
  2666.       Branch {
  2667. DstBlock "Error rate"
  2668. DstPort 2
  2669.       }
  2670.     }
  2671.     Line {
  2672.       SrcBlock       "Fcn1"
  2673.       SrcPort       1
  2674.       Points       [5, 0; 0, -25]
  2675.       DstBlock       "Product"
  2676.       DstPort       2
  2677.     }
  2678.     Line {
  2679.       SrcBlock       "Product"
  2680.       SrcPort       1
  2681.       Points       [25, 0]
  2682.       Branch {
  2683. DstBlock "transmitted signal u(t)"
  2684. DstPort 1
  2685.       }
  2686.       Branch {
  2687. DstBlock "Channel"
  2688. DstPort 1
  2689.       }
  2690.     }
  2691.     Line {
  2692.       SrcBlock       "Channel"
  2693.       SrcPort       1
  2694.       Points       [10, 0]
  2695.       Branch {
  2696. DstBlock "Product1"
  2697. DstPort 2
  2698.       }
  2699.       Branch {
  2700. DstBlock "received signal r(t)"
  2701. DstPort 1
  2702.       }
  2703.     }
  2704.     Line {
  2705.       SrcBlock       "Source"
  2706.       SrcPort       1
  2707.       Points       [15, 0]
  2708.       Branch {
  2709. DstBlock "Root-RCntransmit filter"
  2710. DstPort 1
  2711.       }
  2712.       Branch {
  2713. Points [0, 95]
  2714. Branch {
  2715.   DstBlock   "a(t)"
  2716.   DstPort   1
  2717. }
  2718. Branch {
  2719.   Points   [0, 35; 815, 0; 0, -40]
  2720.   DstBlock   "Error rate"
  2721.   DstPort   1
  2722. }
  2723.       }
  2724.     }
  2725.     Line {
  2726.       SrcBlock       "Product1"
  2727.       SrcPort       1
  2728.       Points       [15, 0]
  2729.       Branch {
  2730. DstBlock "Root-RCnreceive filter"
  2731. DstPort 1
  2732.       }
  2733.       Branch {
  2734. DstBlock "x(t)"
  2735. DstPort 1
  2736.       }
  2737.     }
  2738.     Line {
  2739.       SrcBlock       "Gain"
  2740.       SrcPort       1
  2741.       Points       [10, 0]
  2742.       Branch {
  2743. DstBlock "Product"
  2744. DstPort 1
  2745.       }
  2746.       Branch {
  2747. DstBlock "s(t)"
  2748. DstPort 1
  2749.       }
  2750.       Branch {
  2751. Points [0, -85]
  2752. DstBlock "transmitterndiagrams"
  2753. DstPort 1
  2754.       }
  2755.     }
  2756.     Line {
  2757.       SrcBlock       "Root-RCntransmit filter"
  2758.       SrcPort       1
  2759.       DstBlock       "Gain"
  2760.       DstPort       1
  2761.     }
  2762.     Line {
  2763.       SrcBlock       "Root-RCnreceive filter"
  2764.       SrcPort       1
  2765.       DstBlock       "Gain1"
  2766.       DstPort       1
  2767.     }
  2768.     Line {
  2769.       SrcBlock       "Gain1"
  2770.       SrcPort       1
  2771.       Points       [0, 0]
  2772.       Branch {
  2773. DstBlock "thresholdndetector"
  2774. DstPort 1
  2775.       }
  2776.       Branch {
  2777. Points [10, 0]
  2778. Branch {
  2779.   DstBlock   "s_r(t)"
  2780.   DstPort   1
  2781. }
  2782. Branch {
  2783.   Points   [0, -90]
  2784.   DstBlock   "receiverndiagrams"
  2785.   DstPort   1
  2786. }
  2787.       }
  2788.     }
  2789.   }
  2790. }