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

Matlab

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