BFSK_rayleigh.mdl
上传用户:m_sun_001
上传日期:2014-07-30
资源大小:1115k
文件大小:23k
源码类别:

matlab例程

开发平台:

Matlab

  1. Model {
  2.   Name   "BFSK_rayleigh"
  3.   Version   6.0
  4.   GraphicalInterface {
  5.     NumRootInports     0
  6.     NumRootOutports     0
  7.     ParameterArgumentNames  ""
  8.     ComputedModelVersion    "1.27"
  9.     NumModelReferences     0
  10.     NumTestPointedSignals   0
  11.   }
  12.   SavedCharacterEncoding  "ibm-1386_P100-2002"
  13.   SaveDefaultBlockParams  on
  14.   SampleTimeColors   off
  15.   LibraryLinkDisplay   "none"
  16.   WideLines   off
  17.   ShowLineDimensions   off
  18.   ShowPortDataTypes   off
  19.   ShowLoopsOnError   on
  20.   IgnoreBidirectionalLines off
  21.   ShowStorageClass   off
  22.   ShowTestPointIcons   on
  23.   ShowViewerIcons   on
  24.   SortedOrder   off
  25.   ExecutionContextIcon   off
  26.   ShowLinearizationAnnotations on
  27.   RecordCoverage   off
  28.   CovPath   "/"
  29.   CovSaveName   "covdata"
  30.   CovMetricSettings   "dw"
  31.   CovNameIncrementing   off
  32.   CovHtmlReporting   on
  33.   covSaveCumulativeToWorkspaceVar on
  34.   CovSaveSingleToWorkspaceVar on
  35.   CovCumulativeVarName   "covCumulativeData"
  36.   CovCumulativeReport   off
  37.   CovReportOnPause   on
  38.   ScopeRefreshTime   0.035000
  39.   OverrideScopeRefreshTime on
  40.   DisableAllScopes   off
  41.   DataTypeOverride   "UseLocalSettings"
  42.   MinMaxOverflowLogging   "UseLocalSettings"
  43.   MinMaxOverflowArchiveMode "Overwrite"
  44.   BlockNameDataTip   off
  45.   BlockParametersDataTip  off
  46.   BlockDescriptionStringDataTip off
  47.   ToolBar   on
  48.   StatusBar   on
  49.   BrowserShowLibraryLinks off
  50.   BrowserLookUnderMasks   on
  51.   Created   "Thu Dec 16 14:56:38 2004"
  52.   UpdateHistory   "UpdateHistoryNever"
  53.   ModifiedByFormat   "%<Auto>"
  54.   LastModifiedBy   "xsj1"
  55.   ModifiedDateFormat   "%<Auto>"
  56.   LastModifiedDate   "Wed Dec 22 09:30:48 2004"
  57.   ModelVersionFormat   "1.%<AutoIncrement:27>"
  58.   ConfigurationManager   "None"
  59.   LinearizationMsg   "none"
  60.   Profile   off
  61.   ParamWorkspaceSource   "MATLABWorkspace"
  62.   AccelSystemTargetFile   "accel.tlc"
  63.   AccelTemplateMakefile   "accel_default_tmf"
  64.   AccelMakeCommand   "make_rtw"
  65.   TryForcingSFcnDF   off
  66.   ExtModeBatchMode   off
  67.   ExtModeEnableFloating   on
  68.   ExtModeTrigType   "manual"
  69.   ExtModeTrigMode   "normal"
  70.   ExtModeTrigPort   "1"
  71.   ExtModeTrigElement   "any"
  72.   ExtModeTrigDuration   1000
  73.   ExtModeTrigDurationFloating "auto"
  74.   ExtModeTrigHoldOff   0
  75.   ExtModeTrigDelay   0
  76.   ExtModeTrigDirection   "rising"
  77.   ExtModeTrigLevel   0
  78.   ExtModeArchiveMode   "off"
  79.   ExtModeAutoIncOneShot   off
  80.   ExtModeIncDirWhenArm   off
  81.   ExtModeAddSuffixToVar   off
  82.   ExtModeWriteAllDataToWs off
  83.   ExtModeArmWhenConnect   on
  84.   ExtModeSkipDownloadWhenConnect off
  85.   ExtModeLogAll   on
  86.   ExtModeAutoUpdateStatusClock on
  87.   BufferReuse   on
  88.   ProdHWDeviceType   "32-bit Generic"
  89.   ShowModelReferenceBlockVersion off
  90.   ShowModelReferenceBlockIO off
  91.   Array {
  92.     Type     "Handle"
  93.     Dimension     1
  94.     Simulink.ConfigSet {
  95.       $ObjectID       1
  96.       Version       "1.0.4"
  97.       Array {
  98. Type "Handle"
  99. Dimension 7
  100. Simulink.SolverCC {
  101.   $ObjectID   2
  102.   Version   "1.0.4"
  103.   StartTime   "0.0"
  104.   StopTime   "SimulatonTime"
  105.   AbsTol   "auto"
  106.   FixedStep   "auto"
  107.   InitialStep   "auto"
  108.   MaxNumMinSteps   "-1"
  109.   MaxOrder   5
  110.   ExtrapolationOrder   4
  111.   NumberNewtonIterations  1
  112.   MaxStep   "auto"
  113.   MinStep   "auto"
  114.   RelTol   "1e-3"
  115.   SolverMode   "Auto"
  116.   Solver   "VariableStepDiscrete"
  117.   ZeroCrossControl   "UseLocalSettings"
  118.   PositivePriorityOrder   off
  119.   AutoInsertRateTranBlk   off
  120.   SampleTimeConstraint   "Unconstrained"
  121.   RateTranMode   "Deterministic"
  122. }
  123. Simulink.DataIOCC {
  124.   $ObjectID   3
  125.   Version   "1.0.4"
  126.   Decimation   "1"
  127.   ExternalInput   "[t, u]"
  128.   FinalStateName   "xFinal"
  129.   InitialState   "xInitial"
  130.   LimitDataPoints   on
  131.   MaxDataPoints   "1000"
  132.   LoadExternalInput   off
  133.   LoadInitialState   off
  134.   SaveFinalState   off
  135.   SaveFormat   "Array"
  136.   SaveOutput   on
  137.   SaveState   off
  138.   SaveTime   on
  139.   StateSaveName   "xout"
  140.   TimeSaveName   "tout"
  141.   OutputSaveName   "yout"
  142.   SignalLoggingName   "logsout"
  143.   OutputOption   "RefineOutputTimes"
  144.   OutputTimes   "[]"
  145.   Refine   "1"
  146. }
  147. Simulink.OptimizationCC {
  148.   $ObjectID   4
  149.   Array {
  150.     Type     "Cell"
  151.     Dimension     5
  152.     Cell     "ZeroExternalMemoryAtStartup"
  153.     Cell     "ZeroInternalMemoryAtStartup"
  154.     Cell     "InitFltsAndDblsToZero"
  155.     Cell     "OptimizeModelRefInitCode"
  156.     Cell     "NoFixptDivByZeroProtection"
  157.     PropName     "DisabledProps"
  158.   }
  159.   Version   "1.0.4"
  160.   BlockReduction   on
  161.   BooleanDataType   on
  162.   ConditionallyExecuteInputs on
  163.   ConditionalExecOptimization "on_for_testing"
  164.   InlineParams   off
  165.   InlineInvariantSignals  on
  166.   OptimizeBlockIOStorage  on
  167.   BufferReuse   on
  168.   EnforceIntegerDowncast  on
  169.   ExpressionFolding   on
  170.   FoldNonRolledExpr   on
  171.   LocalBlockOutputs   on
  172.   ParameterPooling   on
  173.   RollThreshold   5
  174.   SystemCodeInlineAuto   off
  175.   StateBitsets   off
  176.   DataBitsets   off
  177.   UseTempVars   off
  178.   ZeroExternalMemoryAtStartup on
  179.   ZeroInternalMemoryAtStartup on
  180.   InitFltsAndDblsToZero   on
  181.   NoFixptDivByZeroProtection off
  182.   OptimizeModelRefInitCode off
  183.   LifeSpan   "inf"
  184. }
  185. Simulink.DebuggingCC {
  186.   $ObjectID   5
  187.   Version   "1.0.4"
  188.   ConsistencyChecking   "none"
  189.   ArrayBoundsChecking   "none"
  190.   AlgebraicLoopMsg   "warning"
  191.   ArtificialAlgebraicLoopMsg "warning"
  192.   CheckSSInitialOutputMsg on
  193.   CheckExecutionContextPreStartOutputMsg off
  194.   CheckExecutionContextRuntimeOutputMsg off
  195.   SignalResolutionControl "TryResolveAllWithWarning"
  196.   BlockPriorityViolationMsg "warning"
  197.   MinStepSizeMsg   "warning"
  198.   SolverPrmCheckMsg   "warning"
  199.   InheritedTsInSrcMsg   "warning"
  200.   DiscreteInheritContinuousMsg "warning"
  201.   MultiTaskRateTransMsg   "error"
  202.   SingleTaskRateTransMsg  "none"
  203.   TasksWithSamePriorityMsg "warning"
  204.   CheckMatrixSingularityMsg "none"
  205.   IntegerOverflowMsg   "warning"
  206.   Int32ToFloatConvMsg   "warning"
  207.   ParameterDowncastMsg   "error"
  208.   ParameterOverflowMsg   "error"
  209.   ParameterPrecisionLossMsg "warning"
  210.   UnderSpecifiedDataTypeMsg "none"
  211.   UnnecessaryDatatypeConvMsg "none"
  212.   VectorMatrixConversionMsg "none"
  213.   InvalidFcnCallConnMsg   "error"
  214.   SignalLabelMismatchMsg  "none"
  215.   UnconnectedInputMsg   "warning"
  216.   UnconnectedOutputMsg   "warning"
  217.   UnconnectedLineMsg   "warning"
  218.   SFcnCompatibilityMsg   "none"
  219.   UniqueDataStoreMsg   "none"
  220.   RootOutportRequireBusObject "warning"
  221.   AssertControl   "UseLocalSettings"
  222.   EnableOverflowDetection off
  223.   ModelReferenceIOMsg   "none"
  224.   ModelReferenceVersionMismatchMessage "none"
  225.   ModelReferenceIOMismatchMessage "none"
  226.   ModelReferenceCSMismatchMessage "none"
  227.   ModelReferenceSimTargetVerbose off
  228.   UnknownTsInhSupMsg   "warning"
  229.   ModelReferenceDataLoggingMessage "warning"
  230.   ModelReferenceSymbolNameMessage "warning"
  231. }
  232. Simulink.HardwareCC {
  233.   $ObjectID   6
  234.   Version   "1.0.4"
  235.   ProdBitPerChar   8
  236.   ProdBitPerShort   16
  237.   ProdBitPerInt   32
  238.   ProdBitPerLong   32
  239.   ProdIntDivRoundTo   "Undefined"
  240.   ProdEndianess   "Unspecified"
  241.   ProdWordSize   32
  242.   ProdShiftRightIntArith  on
  243.   ProdHWDeviceType   "32-bit Generic"
  244.   TargetBitPerChar   8
  245.   TargetBitPerShort   16
  246.   TargetBitPerInt   32
  247.   TargetBitPerLong   32
  248.   TargetShiftRightIntArith on
  249.   TargetIntDivRoundTo   "Undefined"
  250.   TargetEndianess   "Unspecified"
  251.   TargetWordSize   32
  252.   TargetTypeEmulationWarnSuppressLevel 0
  253.   TargetPreprocMaxBitsSint 32
  254.   TargetPreprocMaxBitsUint 32
  255.   TargetHWDeviceType   "Specified"
  256.   TargetUnknown   off
  257.   ProdEqTarget   on
  258. }
  259. Simulink.ModelReferenceCC {
  260.   $ObjectID   7
  261.   Version   "1.0.4"
  262.   UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
  263.   CheckModelReferenceTargetMessage "error"
  264.   ModelReferenceNumInstancesAllowed "Multi"
  265.   ModelReferencePassRootInputsByReference on
  266.   ModelReferenceMinAlgLoopOccurrences off
  267. }
  268. Simulink.RTWCC {
  269.   $BackupClass   "Simulink.RTWCC"
  270.   $ObjectID   8
  271.   Array {
  272.     Type     "Cell"
  273.     Dimension     1
  274.     Cell     "IncludeHyperlinkInReport"
  275.     PropName     "DisabledProps"
  276.   }
  277.   Version   "1.0.4"
  278.   SystemTargetFile   "grt.tlc"
  279.   GenCodeOnly   off
  280.   MakeCommand   "make_rtw"
  281.   TemplateMakefile   "grt_default_tmf"
  282.   GenerateReport   off
  283.   SaveLog   off
  284.   RTWVerbose   on
  285.   RetainRTWFile   off
  286.   ProfileTLC   off
  287.   TLCDebug   off
  288.   TLCCoverage   off
  289.   TLCAssert   off
  290.   ProcessScriptMode   "Default"
  291.   ConfigurationMode   "Optimized"
  292.   ConfigAtBuild   off
  293.   IncludeHyperlinkInReport off
  294.   LaunchReport   off
  295.   Array {
  296.     Type     "Handle"
  297.     Dimension     2
  298.     Simulink.CodeAppCC {
  299.       $ObjectID       9
  300.       Array {
  301. Type "Cell"
  302. Dimension 9
  303. Cell "IgnoreCustomStorageClasses"
  304. Cell "InsertBlockDesc"
  305. Cell "SFDataObjDesc"
  306. Cell "SimulinkDataObjDesc"
  307. Cell "DefineNamingRule"
  308. Cell "SignalNamingRule"
  309. Cell "ParamNamingRule"
  310. Cell "InlinedPrmAccess"
  311. Cell "CustomSymbolStr"
  312. PropName "DisabledProps"
  313.       }
  314.       Version       "1.0.4"
  315.       ForceParamTrailComments off
  316.       GenerateComments       on
  317.       IgnoreCustomStorageClasses on
  318.       IncHierarchyInIds       off
  319.       MaxIdLength       31
  320.       PreserveName       off
  321.       PreserveNameWithParent  off
  322.       ShowEliminatedStatement off
  323.       IncAutoGenComments      off
  324.       SimulinkDataObjDesc     off
  325.       SFDataObjDesc       off
  326.       IncDataTypeInIds       off
  327.       PrefixModelToSubsysFcnNames on
  328.       CustomSymbolStr       "$R$N$M"
  329.       MangleLength       1
  330.       DefineNamingRule       "None"
  331.       ParamNamingRule       "None"
  332.       SignalNamingRule       "None"
  333.       InsertBlockDesc       off
  334.       SimulinkBlockComments   on
  335.       EnableCustomComments    off
  336.       InlinedPrmAccess       "Literals"
  337.       ReqsInCode       off
  338.     }
  339.     Simulink.GRTTargetCC {
  340.       $BackupClass       "Simulink.TargetCC"
  341.       $ObjectID       10
  342.       Array {
  343. Type "Cell"
  344. Dimension 12
  345. Cell "IncludeMdlTerminateFcn"
  346. Cell "CombineOutputUpdateFcns"
  347. Cell "SuppressErrorStatus"
  348. Cell "ERTCustomFileBanners"
  349. Cell "GenerateSampleERTMain"
  350. Cell "MultiInstanceERTCode"
  351. Cell "PurelyIntegerCode"
  352. Cell "SupportNonFinite"
  353. Cell "SupportComplex"
  354. Cell "SupportAbsoluteTime"
  355. Cell "SupportContinuousTime"
  356. Cell "SupportNonInlinedSFcns"
  357. PropName "DisabledProps"
  358.       }
  359.       Version       "1.0.4"
  360.       TargetFcnLib       "ansi_tfl_tmw.mat"
  361.       GenFloatMathFcnCalls    "ANSI_C"
  362.       UtilityFuncGeneration   "Auto"
  363.       GenerateFullHeader      on
  364.       GenerateSampleERTMain   off
  365.       IsPILTarget       off
  366.       ModelReferenceCompliant on
  367.       IncludeMdlTerminateFcn  on
  368.       CombineOutputUpdateFcns off
  369.       SuppressErrorStatus     off
  370.       IncludeFileDelimiter    "Auto"
  371.       ERTCustomFileBanners    off
  372.       SupportAbsoluteTime     on
  373.       LogVarNameModifier      "rt_"
  374.       MatFileLogging       on
  375.       MultiInstanceERTCode    off
  376.       SupportNonFinite       on
  377.       SupportComplex       on
  378.       PurelyIntegerCode       off
  379.       SupportContinuousTime   on
  380.       SupportNonInlinedSFcns  on
  381.       ExtMode       off
  382.       ExtModeStaticAlloc      off
  383.       ExtModeTesting       off
  384.       ExtModeStaticAllocSize  1000000
  385.       ExtModeTransport       0
  386.       ExtModeMexFile       "ext_comm"
  387.       RTWCAPISignals       off
  388.       RTWCAPIParams       off
  389.       RTWCAPIStates       off
  390.       GenerateASAP2       off
  391.     }
  392.     PropName     "Components"
  393.   }
  394. }
  395. PropName "Components"
  396.       }
  397.       Name       "Configuration"
  398.       SimulationMode       "normal"
  399.       CurrentDlgPage       "Solver"
  400.     }
  401.     PropName     "ConfigurationSets"
  402.   }
  403.   Simulink.ConfigSet {
  404.     $PropName     "ActiveConfigurationSet"
  405.     $ObjectID     1
  406.   }
  407.   BlockDefaults {
  408.     Orientation     "right"
  409.     ForegroundColor     "black"
  410.     BackgroundColor     "white"
  411.     DropShadow     off
  412.     NamePlacement     "normal"
  413.     FontName     "Helvetica"
  414.     FontSize     10
  415.     FontWeight     "normal"
  416.     FontAngle     "normal"
  417.     ShowName     on
  418.   }
  419.   BlockParameterDefaults {
  420.     Block {
  421.       BlockType       Constant
  422.       Value       "1"
  423.       VectorParams1D       on
  424.       OutDataTypeMode       "Inherit from 'Constant value'"
  425.       OutDataType       "sfix(16)"
  426.       ConRadixGroup       "Use specified scaling"
  427.       OutScaling       "2^0"
  428.       SampleTime       "inf"
  429.     }
  430.     Block {
  431.       BlockType       FrameConversion
  432.       OutFrame       "Frame based"
  433.     }
  434.     Block {
  435.       BlockType       Ground
  436.     }
  437.     Block {
  438.       BlockType       Inport
  439.       BusObject       "BusObject"
  440.       BusOutputAsStruct       off
  441.       PortDimensions       "-1"
  442.       SampleTime       "-1"
  443.       DataType       "auto"
  444.       OutDataType       "sfix(16)"
  445.       OutScaling       "2^0"
  446.       SignalType       "auto"
  447.       SamplingMode       "auto"
  448.       Interpolate       on
  449.     }
  450.     Block {
  451.       BlockType       Outport
  452.       Port       "1"
  453.       BusObject       "BusObject"
  454.       BusOutputAsStruct       off
  455.       PortDimensions       "-1"
  456.       SampleTime       "-1"
  457.       DataType       "auto"
  458.       OutDataType       "sfix(16)"
  459.       OutScaling       "2^0"
  460.       SignalType       "auto"
  461.       SamplingMode       "auto"
  462.       OutputWhenDisabled      "held"
  463.       InitialOutput       "[]"
  464.     }
  465.     Block {
  466.       BlockType       Rounding
  467.       Operator       "floor"
  468.       SampleTime       "-1"
  469.     }
  470.     Block {
  471.       BlockType       Selector
  472.       InputType       "Vector"
  473.       IndexMode       "One-based"
  474.       ElementSrc       "Internal"
  475.       Elements       "1"
  476.       RowSrc       "Internal"
  477.       Rows       "1"
  478.       ColumnSrc       "Internal"
  479.       Columns       "1"
  480.       InputPortWidth       "-1"
  481.       IndexIsStartValue       off
  482.       OutputPortSize       "1"
  483.     }
  484.     Block {
  485.       BlockType       "S-Function"
  486.       FunctionName       "system"
  487.       PortCounts       "[]"
  488.       SFunctionModules       "''"
  489.     }
  490.     Block {
  491.       BlockType       SubSystem
  492.       ShowPortLabels       on
  493.       Permissions       "ReadWrite"
  494.       PermitHierarchicalResolution "All"
  495.       SystemSampleTime       "-1"
  496.       RTWFcnNameOpts       "Auto"
  497.       RTWFileNameOpts       "Auto"
  498.       SimViewingDevice       off
  499.       DataTypeOverride       "UseLocalSettings"
  500.       MinMaxOverflowLogging   "UseLocalSettings"
  501.     }
  502.     Block {
  503.       BlockType       ToWorkspace
  504.       VariableName       "simulink_output"
  505.       MaxDataPoints       "1000"
  506.       Decimation       "1"
  507.       SampleTime       "0"
  508.       FixptAsFi       off
  509.     }
  510.     Block {
  511.       BlockType       TriggerPort
  512.       TriggerType       "rising"
  513.       StatesWhenEnabling      "inherit"
  514.       ShowOutputPort       off
  515.       OutputDataType       "auto"
  516.       SampleTimeType       "triggered"
  517.       SampleTime       "1"
  518.       ZeroCross       on
  519.     }
  520.   }
  521.   AnnotationDefaults {
  522.     HorizontalAlignment     "center"
  523.     VerticalAlignment     "middle"
  524.     ForegroundColor     "black"
  525.     BackgroundColor     "white"
  526.     DropShadow     off
  527.     FontName     "Helvetica"
  528.     FontSize     10
  529.     FontWeight     "normal"
  530.     FontAngle     "normal"
  531.   }
  532.   LineDefaults {
  533.     FontName     "Helvetica"
  534.     FontSize     9
  535.     FontWeight     "normal"
  536.     FontAngle     "normal"
  537.   }
  538.   System {
  539.     Name     "BFSK_rayleigh"
  540.     Location     [214, 74, 1022, 724]
  541.     Open     on
  542.     ModelBrowserVisibility  on
  543.     ModelBrowserWidth     200
  544.     ScreenColor     "white"
  545.     PaperOrientation     "landscape"
  546.     PaperPositionMode     "auto"
  547.     PaperType     "A4"
  548.     PaperUnits     "centimeters"
  549.     ZoomFactor     "100"
  550.     ReportName     "simulink-default.rpt"
  551.     Block {
  552.       BlockType       SubSystem
  553.       Name       "Channel"
  554.       Ports       [1, 1]
  555.       Position       [425, 239, 525, 281]
  556.       FontSize       10
  557.       TreatAsAtomicUnit       off
  558.       MinAlgLoopOccurrences   off
  559.       RTWSystemCode       "Auto"
  560.       System {
  561. Name "Channel"
  562. Location [501, 299, 999, 599]
  563. Open on
  564. ModelBrowserVisibility on
  565. ModelBrowserWidth 200
  566. ScreenColor "white"
  567. PaperOrientation "landscape"
  568. PaperPositionMode "auto"
  569. PaperType "A4"
  570. PaperUnits "centimeters"
  571. ZoomFactor "100"
  572. Block {
  573.   BlockType   Inport
  574.   Name   "Signal In"
  575.   Position   [45, 103, 75, 117]
  576.   Port   "1"
  577.   IconDisplay   "Port number"
  578.   LatchInput   off
  579. }
  580. Block {
  581.   BlockType   Reference
  582.   Name   "AWGNnChannel"
  583.   Ports   [1, 1]
  584.   Position   [305, 89, 385, 131]
  585.   FontSize   10
  586.   SourceBlock   "commchan2/AWGNnChannel"
  587.   SourceType   "AWGN Channel"
  588.   ShowPortLabels   on
  589.   seed   "67"
  590.   noiseMode   "Signal to noise ratio  (SNR)"
  591.   EbNodB   "10"
  592.   EsNodB   "10"
  593.   SNRdB   "SNR"
  594.   bitsPerSym   "1"
  595.   Ps   "1"
  596.   Tsym   "1"
  597.   variance   "1"
  598. }
  599. Block {
  600.   BlockType   Reference
  601.   Name   "Multipath RayleighnFading Channel"
  602.   Ports   [1, 1]
  603.   Position   [160, 88, 240, 132]
  604.   FontSize   10
  605.   SourceBlock   "commchan2/Multipath RayleighnFading Channe"
  606. "l"
  607.   SourceType   "Multipath Rayleigh Fading Channel"
  608.   ShowPortLabels   on
  609.   Fd   "Fd"
  610.   simTs   "1/BitRate/SamplesPerSymbol"
  611.   delayVec   "[0 2e-6]"
  612.   gainVecdB   "[0 -3]"
  613.   normGain   on
  614.   Seed   "67"
  615. }
  616. Block {
  617.   BlockType   Outport
  618.   Name   "Signal Out"
  619.   Position   [450, 103, 480, 117]
  620.   IconDisplay   "Port number"
  621.   BusOutputAsStruct   off
  622. }
  623. Line {
  624.   SrcBlock   "Signal In"
  625.   SrcPort   1
  626.   DstBlock   "Multipath RayleighnFading Channel"
  627.   DstPort   1
  628. }
  629. Line {
  630.   SrcBlock   "Multipath RayleighnFading Channel"
  631.   SrcPort   1
  632.   DstBlock   "AWGNnChannel"
  633.   DstPort   1
  634. }
  635. Line {
  636.   SrcBlock   "AWGNnChannel"
  637.   SrcPort   1
  638.   DstBlock   "Signal Out"
  639.   DstPort   1
  640. }
  641.       }
  642.     }
  643.     Block {
  644.       BlockType       SubSystem
  645.       Name       "Sink"
  646.       Ports       [2]
  647.       Position       [615, 123, 720, 307]
  648.       TreatAsAtomicUnit       off
  649.       MinAlgLoopOccurrences   off
  650.       RTWSystemCode       "Auto"
  651.       System {
  652. Name "Sink"
  653. Location [214, 74, 1022, 724]
  654. Open off
  655. ModelBrowserVisibility on
  656. ModelBrowserWidth 200
  657. ScreenColor "white"
  658. PaperOrientation "landscape"
  659. PaperPositionMode "auto"
  660. PaperType "A4"
  661. PaperUnits "centimeters"
  662. ZoomFactor "100"
  663. Block {
  664.   BlockType   Inport
  665.   Name   "Data"
  666.   Position   [140, 48, 170, 62]
  667.   Port   "1"
  668.   IconDisplay   "Port number"
  669.   LatchInput   off
  670. }
  671. Block {
  672.   BlockType   Inport
  673.   Name   "Singal"
  674.   Position   [25, 98, 55, 112]
  675.   Port   "2"
  676.   IconDisplay   "Port number"
  677.   LatchInput   off
  678. }
  679. Block {
  680.   BlockType   Reference
  681.   Name   "Error RatenCalculation"
  682.   Ports   [2, 1]
  683.   Position   [370, 28, 465, 132]
  684.   SourceBlock   "commsink2/Error RatenCalculation"
  685.   SourceType   "Error Rate Calculation"
  686.   N   "0"
  687.   st_delay   "0"
  688.   cp_mode   "Entire frame"
  689.   subframe   "[]"
  690.   PMode   "Port"
  691.   WsName   "ErrorVec"
  692.   RsMode2   off
  693.   stop   off
  694.   numErr   "100"
  695.   maxBits   "1e6"
  696. }
  697. Block {
  698.   BlockType   Reference
  699.   Name   "M-FSKnDemodulatornBaseband"
  700.   Ports   [1, 1]
  701.   Position   [150, 81, 225, 129]
  702.   SourceBlock   "commdigbbndfm2/M-FSKnDemodulatornBaseband"
  703.   SourceType   "M-FSK Demodulator Baseband"
  704.   M   "2"
  705.   OutType   "Bit"
  706.   Dec   "Binary"
  707.   freqSep   "FrequencySeparation"
  708.   numSamp   "SamplesPerSymbol"
  709. }
  710. Block {
  711.   BlockType   Selector
  712.   Name   "Selector"
  713.   Ports   [1, 1]
  714.   Position   [535, 61, 575, 99]
  715.   InputPortWidth   "3"
  716. }
  717. Block {
  718.   BlockType   ToWorkspace
  719.   Name   "To Workspace"
  720.   Position   [625, 63, 710, 97]
  721.   VariableName   "BitErrorRate"
  722.   MaxDataPoints   "inf"
  723.   SampleTime   "-1"
  724.   SaveFormat   "Array"
  725. }
  726. Line {
  727.   SrcBlock   "Error RatenCalculation"
  728.   SrcPort   1
  729.   DstBlock   "Selector"
  730.   DstPort   1
  731. }
  732. Line {
  733.   SrcBlock   "Singal"
  734.   SrcPort   1
  735.   DstBlock   "M-FSKnDemodulatornBaseband"
  736.   DstPort   1
  737. }
  738. Line {
  739.   SrcBlock   "Selector"
  740.   SrcPort   1
  741.   DstBlock   "To Workspace"
  742.   DstPort   1
  743. }
  744. Line {
  745.   SrcBlock   "M-FSKnDemodulatornBaseband"
  746.   SrcPort   1
  747.   DstBlock   "Error RatenCalculation"
  748.   DstPort   2
  749. }
  750. Line {
  751.   SrcBlock   "Data"
  752.   SrcPort   1
  753.   DstBlock   "Error RatenCalculation"
  754.   DstPort   1
  755. }
  756.       }
  757.     }
  758.     Block {
  759.       BlockType       SubSystem
  760.       Name       "Source"
  761.       Ports       [0, 2]
  762.       Position       [200, 125, 310, 305]
  763.       TreatAsAtomicUnit       off
  764.       MinAlgLoopOccurrences   off
  765.       RTWSystemCode       "Auto"
  766.       System {
  767. Name "Source"
  768. Location [214, 74, 1022, 724]
  769. Open off
  770. ModelBrowserVisibility on
  771. ModelBrowserWidth 200
  772. ScreenColor "white"
  773. PaperOrientation "landscape"
  774. PaperPositionMode "auto"
  775. PaperType "A4"
  776. PaperUnits "centimeters"
  777. ZoomFactor "100"
  778. Block {
  779.   BlockType   Reference
  780.   Name   "M-FSKnModulatornBaseband"
  781.   Ports   [1, 1]
  782.   Position   [340, 120, 415, 170]
  783.   SourceBlock   "commdigbbndfm2/M-FSKnModulatornBaseband"
  784.   SourceType   "M-FSK Modulator Baseband"
  785.   M   "2"
  786.   InType   "Bit"
  787.   Enc   "Binary"
  788.   freqSep   "FrequencySeparation"
  789.   phaseType   "Continuous"
  790.   numSamp   "SamplesPerSymbol"
  791. }
  792. Block {
  793.   BlockType   Reference
  794.   Name   "Random IntegernGenerator"
  795.   Ports   [0, 1]
  796.   Position   [160, 123, 240, 167]
  797.   FontName   "Arial"
  798.   SourceBlock   "commrandsrc2/Random IntegernGenerator"
  799.   SourceType   "Random Integer Generator"
  800.   ShowPortLabels   on
  801.   mul   "2"
  802.   seed   "37"
  803.   Ts   "1/BitRate"
  804.   frameBased   on
  805.   sampPerFrame   "BitRate"
  806.   orient   off
  807. }
  808. Block {
  809.   BlockType   Outport
  810.   Name   "Data"
  811.   Position   [520, 273, 550, 287]
  812.   IconDisplay   "Port number"
  813.   BusOutputAsStruct   off
  814. }
  815. Block {
  816.   BlockType   Outport
  817.   Name   "Signal"
  818.   Position   [515, 138, 545, 152]
  819.   Port   "2"
  820.   IconDisplay   "Port number"
  821.   BusOutputAsStruct   off
  822. }
  823. Line {
  824.   SrcBlock   "Random IntegernGenerator"
  825.   SrcPort   1
  826.   Points   [35, 0]
  827.   Branch {
  828.     DstBlock     "M-FSKnModulatornBaseband"
  829.     DstPort     1
  830.   }
  831.   Branch {
  832.     Points     [0, 135]
  833.     DstBlock     "Data"
  834.     DstPort     1
  835.   }
  836. }
  837. Line {
  838.   SrcBlock   "M-FSKnModulatornBaseband"
  839.   SrcPort   1
  840.   DstBlock   "Signal"
  841.   DstPort   1
  842. }
  843.       }
  844.     }
  845.     Line {
  846.       SrcBlock       "Source"
  847.       SrcPort       1
  848.       DstBlock       "Sink"
  849.       DstPort       1
  850.     }
  851.     Line {
  852.       SrcBlock       "Source"
  853.       SrcPort       2
  854.       DstBlock       "Channel"
  855.       DstPort       1
  856.     }
  857.     Line {
  858.       SrcBlock       "Channel"
  859.       SrcPort       1
  860.       DstBlock       "Sink"
  861.       DstPort       2
  862.     }
  863.   }
  864. }