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

📄 m_qam_model.mdl

📁 通信系统仿真主要仿真各种调制方式
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      additionalParams	      off
      allowOverrides	      on
      outputMode	      "Same as input-squared product"
      outputWordLength	      "32"
      outputFracLength	      "30"
      accumMode		      "Same as input-squared product"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Same as input"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      memoryMode	      "Same as input-squared product"
      memoryWordLength	      "32"
      memoryFracLength	      "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [25, 193, 105, 237]
      NamePlacement	      "alternate"
      DialogController	      "commDDGCreate"
      DialogControllerArgs    "DataTag1"
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      P			      "0.5"
      seed		      "61"
      Ts		      "Ts"
      frameBased	      on
      sampPerFrame	      "log2(M)*1e4"
      orient		      off
      outDataType	      "double"
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter"
      Ports		      [1, 1]
      Position		      [200, 488, 280, 532]
      ShowName		      off
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "log2(M)"
      bitOrder		      "MSB first"
      signedOutputValues      "Unsigned"
      outDtype		      "Inherit via internal rule"
      outDtypeSigned	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter1"
      Ports		      [1, 1]
      Position		      [200, 533, 280, 577]
      ShowName		      off
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "log2(M)"
      bitOrder		      "MSB first"
      signedOutputValues      "Unsigned"
      outDtype		      "Inherit via internal rule"
      outDtypeSigned	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter2"
      Ports		      [1, 1]
      Position		      [150, 192, 175, 238]
      ShowName		      off
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "log2(M)"
      bitOrder		      "MSB first"
      signedOutputValues      "Unsigned"
      outDtype		      "Inherit via internal rule"
      outDtypeSigned	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [495, 364, 585, 426]
      ShowName		      off
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Display
      Name		      "Display1"
      Ports		      [1]
      Position		      [495, 503, 585, 567]
      ShowName		      off
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Display
      Name		      "Display2"
      Ports		      [1]
      Position		      [380, 117, 445, 143]
      ShowName		      off
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Double-click\nto Open"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [635, 89, 680, 131]
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "400"
      numNewFrames	      "100"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-5.5"
      xMax		      "5.525"
      yMin		      "-5.5"
      yMax		      "5.525"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     off
      FrameNumber	      off
      FigPos		      "get(0,'defaultfigureposition');"
      figTitle		      "Received Signal Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [385, 367, 460, 418]
      ShowName		      off
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      on
      numErr		      "maxNumErrs"
      maxBits		      "maxNumBits"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation1"
      Ports		      [2, 1]
      Position		      [385, 507, 460, 558]
      ShowName		      off
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      on
      numErr		      "maxNumErrs"
      maxBits		      "maxNumBits"
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [75, 372, 145, 388]
      BackgroundColor	      "yellow"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "xmit_bits"
    }
    Block {
      BlockType		      From
      Name		      "From1"
      Position		      [75, 397, 145, 413]
      BackgroundColor	      "[1.000000, 0.501961, 0.250980]"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "rcv_bits"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      Position		      [75, 547, 145, 563]
      BackgroundColor	      "[1.000000, 0.501961, 0.250980]"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "rcv_bits"
    }
    Block {
      BlockType		      From
      Name		      "From3"
      Position		      [75, 502, 145, 518]
      BackgroundColor	      "yellow"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "xmit_bits"
    }
    Block {
      BlockType		      Reference
      Name		      "General QAM\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [485, 189, 560, 241]
      DialogController	      "commDDGCreate"
      DialogControllerArgs    "DataTag2"
      SourceBlock	      "commdigbbndam3/General QAM\nDemodulator\nBaseband"
      SourceType	      "General QAM Demodulator Baseband"
      SigCon		      "RectQAM_const(M)"
      OutType		      "Bit"
      DecType		      "Hard decision"
      VarSource		      "Dialog"
      Variance		      "1"
      outDtypeBit	      "Inherit via internal rule"
      outDtype		      "Inherit via internal rule"
      roundingMode	      "Floor"
      overflowMode	      "Wrap"
      sigConstDTMode	      "Same word length as input"
      sigConstWordLen	      "16"
      accum1DTMode	      "Inherit via internal rule"
      accum1WordLen	      "32"
      accum1FracLen	      "30"
      prodInDTMode	      "Same as accumulator 1"
      prodInWordLen	      "32"
      prodInFracLen	      "30"
      prodOutDTMode	      "Inherit via internal rule"
      prodOutWordLen	      "32"
      prodOutFracLen	      "30"
      accum2DTMode	      "Inherit via internal rule"
      accum2WordLen	      "32"
      accum2FracLen	      "30"
      accum3DTMode	      "Inherit via internal rule"
      accum3WordLen	      "32"
      accum3FracLen	      "30"
      nsiDTMode		      "Same as accumulator 3"
      nsiWordLen	      "32"
      nsiFracLen	      "30"
      invn0DTMode	      "Same word length as input"
      invn0WordLen	      "16"
      invn0FracLen	      "8"
      outputDTMode	      "Inherit via internal rule"
      outputWordLen	      "32"
      outputFracLen	      "30"
    }
    Block {
      BlockType		      Reference
      Name		      "General QAM\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [195, 189, 270, 241]
      NamePlacement	      "alternate"
      DialogController	      "commDDGCreate"
      DialogControllerArgs    "DataTag3"
      SourceBlock	      "commdigbbndam3/General QAM\nModulator\nBaseband"
      SourceType	      "General QAM Modulator Baseband"
      SigCon		      "RectQAM_const(M)"
      outDtype		      "double"
      outWordLen	      "16"
      outUDDataType	      "sfix(16)"
      outFracLenMode	      "Best precision"
      outFracLen	      "15"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto"
      Position		      [175, 255, 240, 275]
      BackgroundColor	      "yellow"
      ShowName		      off
      GotoTag		      "xmit_bits"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto1"
      Position		      [605, 206, 675, 224]
      BackgroundColor	      "[1.000000, 0.501961, 0.250980]"
      ShowName		      off
      GotoTag		      "rcv_bits"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [605, 330, 665, 360]
      NamePlacement	      "alternate"
      VariableName	      "BER"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [610, 570, 670, 600]
      VariableName	      "SER"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "zzzzz"
      Ports		      []
      Position		      [63, 339, 587, 440]
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowName		      off
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskDisplay	      "disp('')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"zzzzz"
	Location		[433, 403, 931, 703]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "zzzzz1"
      Ports		      []
      Position		      [63, 483, 590, 595]
      BackgroundColor	      "[0.501961, 1.000000, 0.501961]"
      DropShadow	      on
      ShowName		      off
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskDisplay	      "disp('')"

⌨️ 快捷键说明

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