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

matlab例程

开发平台:

Matlab

  1. Model {
  2.   Name   "BFSK_AWGN"
  3.   Version   6.0
  4.   GraphicalInterface {
  5.     NumRootInports     0
  6.     NumRootOutports     0
  7.     ParameterArgumentNames  ""
  8.     ComputedModelVersion    "1.26"
  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   "Thu Dec 16 20:24:01 2004"
  57.   ModelVersionFormat   "1.%<AutoIncrement:26>"
  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       FrameConversion
  422.       OutFrame       "Frame based"
  423.     }
  424.     Block {
  425.       BlockType       Ground
  426.     }
  427.     Block {
  428.       BlockType       Inport
  429.       BusObject       "BusObject"
  430.       BusOutputAsStruct       off
  431.       PortDimensions       "-1"
  432.       SampleTime       "-1"
  433.       DataType       "auto"
  434.       OutDataType       "sfix(16)"
  435.       OutScaling       "2^0"
  436.       SignalType       "auto"
  437.       SamplingMode       "auto"
  438.       Interpolate       on
  439.     }
  440.     Block {
  441.       BlockType       Outport
  442.       Port       "1"
  443.       BusObject       "BusObject"
  444.       BusOutputAsStruct       off
  445.       PortDimensions       "-1"
  446.       SampleTime       "-1"
  447.       DataType       "auto"
  448.       OutDataType       "sfix(16)"
  449.       OutScaling       "2^0"
  450.       SignalType       "auto"
  451.       SamplingMode       "auto"
  452.       OutputWhenDisabled      "held"
  453.       InitialOutput       "[]"
  454.     }
  455.     Block {
  456.       BlockType       Rounding
  457.       Operator       "floor"
  458.       SampleTime       "-1"
  459.     }
  460.     Block {
  461.       BlockType       Selector
  462.       InputType       "Vector"
  463.       IndexMode       "One-based"
  464.       ElementSrc       "Internal"
  465.       Elements       "1"
  466.       RowSrc       "Internal"
  467.       Rows       "1"
  468.       ColumnSrc       "Internal"
  469.       Columns       "1"
  470.       InputPortWidth       "-1"
  471.       IndexIsStartValue       off
  472.       OutputPortSize       "1"
  473.     }
  474.     Block {
  475.       BlockType       "S-Function"
  476.       FunctionName       "system"
  477.       PortCounts       "[]"
  478.       SFunctionModules       "''"
  479.     }
  480.     Block {
  481.       BlockType       SubSystem
  482.       ShowPortLabels       on
  483.       Permissions       "ReadWrite"
  484.       PermitHierarchicalResolution "All"
  485.       SystemSampleTime       "-1"
  486.       RTWFcnNameOpts       "Auto"
  487.       RTWFileNameOpts       "Auto"
  488.       SimViewingDevice       off
  489.       DataTypeOverride       "UseLocalSettings"
  490.       MinMaxOverflowLogging   "UseLocalSettings"
  491.     }
  492.     Block {
  493.       BlockType       ToWorkspace
  494.       VariableName       "simulink_output"
  495.       MaxDataPoints       "1000"
  496.       Decimation       "1"
  497.       SampleTime       "0"
  498.       FixptAsFi       off
  499.     }
  500.   }
  501.   AnnotationDefaults {
  502.     HorizontalAlignment     "center"
  503.     VerticalAlignment     "middle"
  504.     ForegroundColor     "black"
  505.     BackgroundColor     "white"
  506.     DropShadow     off
  507.     FontName     "Helvetica"
  508.     FontSize     10
  509.     FontWeight     "normal"
  510.     FontAngle     "normal"
  511.   }
  512.   LineDefaults {
  513.     FontName     "Helvetica"
  514.     FontSize     9
  515.     FontWeight     "normal"
  516.     FontAngle     "normal"
  517.   }
  518.   System {
  519.     Name     "BFSK_AWGN"
  520.     Location     [214, 74, 1022, 724]
  521.     Open     on
  522.     ModelBrowserVisibility  on
  523.     ModelBrowserWidth     200
  524.     ScreenColor     "white"
  525.     PaperOrientation     "landscape"
  526.     PaperPositionMode     "auto"
  527.     PaperType     "A4"
  528.     PaperUnits     "centimeters"
  529.     ZoomFactor     "100"
  530.     ReportName     "simulink-default.rpt"
  531.     Block {
  532.       BlockType       Reference
  533.       Name       "AWGNnChannel"
  534.       Ports       [1, 1]
  535.       Position       [435, 239, 515, 281]
  536.       SourceBlock       "commchan2/AWGNnChannel"
  537.       SourceType       "AWGN Channel"
  538.       ShowPortLabels       on
  539.       seed       "67"
  540.       noiseMode       "Signal to noise ratio  (SNR)"
  541.       EbNodB       "SNR"
  542.       EsNodB       "10"
  543.       SNRdB       "SNR"
  544.       bitsPerSym       "1"
  545.       Ps       "1"
  546.       Tsym       "1"
  547.       variance       "1"
  548.     }
  549.     Block {
  550.       BlockType       SubSystem
  551.       Name       "Sink"
  552.       Ports       [2]
  553.       Position       [615, 123, 720, 307]
  554.       TreatAsAtomicUnit       off
  555.       MinAlgLoopOccurrences   off
  556.       RTWSystemCode       "Auto"
  557.       System {
  558. Name "Sink"
  559. Location [214, 74, 1022, 724]
  560. Open off
  561. ModelBrowserVisibility on
  562. ModelBrowserWidth 200
  563. ScreenColor "white"
  564. PaperOrientation "landscape"
  565. PaperPositionMode "auto"
  566. PaperType "A4"
  567. PaperUnits "centimeters"
  568. ZoomFactor "100"
  569. Block {
  570.   BlockType   Inport
  571.   Name   "Data"
  572.   Position   [140, 48, 170, 62]
  573.   Port   "1"
  574.   IconDisplay   "Port number"
  575.   LatchInput   off
  576. }
  577. Block {
  578.   BlockType   Inport
  579.   Name   "Singal"
  580.   Position   [25, 98, 55, 112]
  581.   Port   "2"
  582.   IconDisplay   "Port number"
  583.   LatchInput   off
  584. }
  585. Block {
  586.   BlockType   Reference
  587.   Name   "Error RatenCalculation"
  588.   Ports   [2, 1]
  589.   Position   [370, 28, 465, 132]
  590.   SourceBlock   "commsink2/Error RatenCalculation"
  591.   SourceType   "Error Rate Calculation"
  592.   N   "0"
  593.   st_delay   "0"
  594.   cp_mode   "Entire frame"
  595.   subframe   "[]"
  596.   PMode   "Port"
  597.   WsName   "ErrorVec"
  598.   RsMode2   off
  599.   stop   off
  600.   numErr   "100"
  601.   maxBits   "1e6"
  602. }
  603. Block {
  604.   BlockType   Reference
  605.   Name   "M-FSKnDemodulatornBaseband"
  606.   Ports   [1, 1]
  607.   Position   [150, 81, 225, 129]
  608.   FontSize   10
  609.   SourceBlock   "commdigbbndfm2/M-FSKnDemodulatornBaseband"
  610.   SourceType   "M-FSK Demodulator Baseband"
  611.   M   "2"
  612.   OutType   "Bit"
  613.   Dec   "Binary"
  614.   freqSep   "FrequencySeparation"
  615.   numSamp   "SamplesPerSymbol"
  616. }
  617. Block {
  618.   BlockType   Selector
  619.   Name   "Selector"
  620.   Ports   [1, 1]
  621.   Position   [535, 61, 575, 99]
  622.   InputPortWidth   "3"
  623. }
  624. Block {
  625.   BlockType   ToWorkspace
  626.   Name   "To Workspace"
  627.   Position   [625, 63, 710, 97]
  628.   VariableName   "BitErrorRate"
  629.   MaxDataPoints   "inf"
  630.   SampleTime   "-1"
  631.   SaveFormat   "Array"
  632. }
  633. Line {
  634.   SrcBlock   "Error RatenCalculation"
  635.   SrcPort   1
  636.   DstBlock   "Selector"
  637.   DstPort   1
  638. }
  639. Line {
  640.   SrcBlock   "Singal"
  641.   SrcPort   1
  642.   DstBlock   "M-FSKnDemodulatornBaseband"
  643.   DstPort   1
  644. }
  645. Line {
  646.   SrcBlock   "Selector"
  647.   SrcPort   1
  648.   DstBlock   "To Workspace"
  649.   DstPort   1
  650. }
  651. Line {
  652.   SrcBlock   "M-FSKnDemodulatornBaseband"
  653.   SrcPort   1
  654.   DstBlock   "Error RatenCalculation"
  655.   DstPort   2
  656. }
  657. Line {
  658.   SrcBlock   "Data"
  659.   SrcPort   1
  660.   DstBlock   "Error RatenCalculation"
  661.   DstPort   1
  662. }
  663.       }
  664.     }
  665.     Block {
  666.       BlockType       SubSystem
  667.       Name       "Source"
  668.       Ports       [0, 2]
  669.       Position       [200, 125, 310, 305]
  670.       TreatAsAtomicUnit       off
  671.       MinAlgLoopOccurrences   off
  672.       RTWSystemCode       "Auto"
  673.       System {
  674. Name "Source"
  675. Location [214, 74, 1022, 724]
  676. Open off
  677. ModelBrowserVisibility on
  678. ModelBrowserWidth 200
  679. ScreenColor "white"
  680. PaperOrientation "landscape"
  681. PaperPositionMode "auto"
  682. PaperType "A4"
  683. PaperUnits "centimeters"
  684. ZoomFactor "100"
  685. Block {
  686.   BlockType   Reference
  687.   Name   "M-FSKnModulatornBaseband"
  688.   Ports   [1, 1]
  689.   Position   [340, 120, 415, 170]
  690.   SourceBlock   "commdigbbndfm2/M-FSKnModulatornBaseband"
  691.   SourceType   "M-FSK Modulator Baseband"
  692.   M   "2"
  693.   InType   "Bit"
  694.   Enc   "Binary"
  695.   freqSep   "FrequencySeparation"
  696.   phaseType   "Continuous"
  697.   numSamp   "SamplesPerSymbol"
  698. }
  699. Block {
  700.   BlockType   Reference
  701.   Name   "Random IntegernGenerator"
  702.   Ports   [0, 1]
  703.   Position   [160, 123, 240, 167]
  704.   FontName   "Arial"
  705.   SourceBlock   "commrandsrc2/Random IntegernGenerator"
  706.   SourceType   "Random Integer Generator"
  707.   ShowPortLabels   on
  708.   mul   "2"
  709.   seed   "37"
  710.   Ts   "1/BitRate"
  711.   frameBased   on
  712.   sampPerFrame   "BitRate"
  713.   orient   off
  714. }
  715. Block {
  716.   BlockType   Outport
  717.   Name   "Data"
  718.   Position   [520, 273, 550, 287]
  719.   IconDisplay   "Port number"
  720.   BusOutputAsStruct   off
  721. }
  722. Block {
  723.   BlockType   Outport
  724.   Name   "Signal"
  725.   Position   [515, 138, 545, 152]
  726.   Port   "2"
  727.   IconDisplay   "Port number"
  728.   BusOutputAsStruct   off
  729. }
  730. Line {
  731.   SrcBlock   "Random IntegernGenerator"
  732.   SrcPort   1
  733.   Points   [35, 0]
  734.   Branch {
  735.     DstBlock     "M-FSKnModulatornBaseband"
  736.     DstPort     1
  737.   }
  738.   Branch {
  739.     Points     [0, 135]
  740.     DstBlock     "Data"
  741.     DstPort     1
  742.   }
  743. }
  744. Line {
  745.   SrcBlock   "M-FSKnModulatornBaseband"
  746.   SrcPort   1
  747.   DstBlock   "Signal"
  748.   DstPort   1
  749. }
  750.       }
  751.     }
  752.     Line {
  753.       SrcBlock       "Source"
  754.       SrcPort       2
  755.       DstBlock       "AWGNnChannel"
  756.       DstPort       1
  757.     }
  758.     Line {
  759.       SrcBlock       "AWGNnChannel"
  760.       SrcPort       1
  761.       DstBlock       "Sink"
  762.       DstPort       2
  763.     }
  764.     Line {
  765.       SrcBlock       "Source"
  766.       SrcPort       1
  767.       DstBlock       "Sink"
  768.       DstPort       1
  769.     }
  770.   }
  771. }