⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example5.mdl

📁 或许这个代码会对大家有用
💻 MDL
字号:
Model {
  Name			  "example5"
  Version		  4.00
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Sat Jan 11 16:50:37 2003"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "Administrator"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun Jan 12 08:08:46 2003"
  ModelVersionFormat	  "1.%<AutoIncrement:35>"
  ConfigurationManager	  "None"
  SimParamPage		  "Solver"
  StartTime		  "0.0"
  StopTime		  "5"
  SolverMode		  "Auto"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  LimitDataPoints	  on
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "accelerator"
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  on
  RTWExpressionDepthLimit 5
  BooleanDataType	  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "example5"
    Location		    [26, 64, 675, 495]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "automatic"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN\nChannel"
      Ports		      [1, 1]
      Position		      [260, 34, 340, 76]
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      seed		      "1237"
      noiseMode		      "Signal to noise ratio  (Es/No)"
      EsNodB		      "10"
      SNRdB		      "10"
      Ps		      "1"
      Tsym		      "1/1200"
      variance		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Random\nBinary Generator"
      Ports		      [0, 1]
      Position		      [50, 32, 120, 78]
      SourceBlock	      "commsource2/Bernoulli Random\nBinary Generator"
      SourceType	      "Bernoulli Random Binary Generator"
      P			      "0.5"
      seed		      "100"
      Ts		      "1/1200"
      frameBased	      off
      sampPerFrame	      "4"
      orient		      off
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [120, 180, 220, 250]
      Orientation	      "left"
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate Calculation"
      Ports		      [2, 1]
      Position		      [315, 185, 405, 245]
      Orientation	      "left"
      SourceBlock	      "commsink2/Error Rate Calculation"
      SourceType	      "Error Rate Calculation"
      N			      "2"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay"
      Ports		      [1, 1]
      Position		      [355, 285, 405, 325]
      Orientation	      "left"
      SourceBlock	      "dspsigops/Integer Delay"
      SourceType	      "Integer Delay"
      delay		      "2"
      ic		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "M-FSK\nDemodulator\nPassband"
      Ports		      [1, 1]
      Position		      [365, 31, 445, 79]
      FontName		      "Arial"
      FontSize		      10
      SourceBlock	      "commdigpbndfm2/M-FSK\nDemodulator\nPassband"
      SourceType	      "M-FSK Demodulator Passband"
      M			      "2"
      OutType		      "Integer"
      Dec		      "Binary"
      freqSep		      "1000"
      td		      "1/1200"
      numSamp		      "8"
      Fc		      "10000"
      Ph		      "0"
      InSamp		      "1/48000"
    }
    Block {
      BlockType		      Reference
      Name		      "M-FSK\nModulator\nPassband"
      Ports		      [1, 1]
      Position		      [150, 31, 230, 79]
      FontName		      "Arial"
      FontSize		      10
      SourceBlock	      "commdigpbndfm2/M-FSK\nModulator\nPassband"
      SourceType	      "M-FSK Modulator Passband"
      M			      "2"
      InType		      "Integer"
      Enc		      "Binary"
      freqSep		      "1000"
      phaseType		      "Continuous"
      td		      "1/1200"
      numSamp		      "8"
      Fc		      "10000"
      Ph		      "0"
      OutSamp		      "1/48000"
    }
    Block {
      BlockType		      RelationalOperator
      Name		      "Relational\nOperator"
      Position		      [270, 265, 305, 320]
      Orientation	      "left"
      Operator		      "~="
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [3]
      Position		      [120, 315, 195, 385]
      Orientation	      "left"
      Floating		      off
      Location		      [231, 238, 690, 477]
      Open		      off
      NumInputPorts	      "3"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      Grid		      "on"
      TimeRange		      "0.1"
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [265, 108, 335, 142]
      FontSize		      10
      SourceBlock	      "dspsnks3/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      on
      FFTlength		      "128"
      numAvg		      "20"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-42.0653107614815"
      YMax		      "18.0706781778584"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Line {
      SrcBlock		      "Bernoulli Random\nBinary Generator"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"M-FSK\nModulator\nPassband"
	DstPort			1
      }
      Branch {
	Points			[0, 115; 310, 0; 0, 30]
	Branch {
	  DstBlock		  "Error Rate Calculation"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 105]
	  DstBlock		  "Integer Delay"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "M-FSK\nModulator\nPassband"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	Points			[0, 70]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "M-FSK\nDemodulator\nPassband"
      SrcPort		      1
      Points		      [10, 0; 0, 175]
      Branch {
	DstBlock		"Error Rate Calculation"
	DstPort			2
      }
      Branch {
	Points			[0, 50]
	Branch {
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 95]
	  DstBlock		  "Scope"
	  DstPort		  3
	}
      }
    }
    Line {
      SrcBlock		      "Error Rate Calculation"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integer Delay"
      SrcPort		      1
      Points		      [-20, 0]
      Branch {
	DstBlock		"Relational\nOperator"
	DstPort			2
      }
      Branch {
	Points			[0, 45]
	DstBlock		"Scope"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Relational\nOperator"
      SrcPort		      1
      Points		      [-25, 0; 0, 30]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      DstBlock		      "M-FSK\nDemodulator\nPassband"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -