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

📄 pam_mod_demod.mdl

📁 收集的一组跟噪声产生以及消除、衡量消噪性能指标的MATLAB仿真源代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      FrameConversion
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Ground
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      "M-S-Function"
      MFile		      "mlfile"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Quantizer
      QuantizationInterval    "0.5"
      LinearizeAsGain	      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Courier New"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Courier New"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "pam_mod_demod"
    Location		    [197, 104, 951, 538]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "102"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN\nChannel"
      Ports		      [1, 1]
      Position		      [455, 94, 535, 136]
      FontSize		      10
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      ShowPortLabels	      on
      seed		      "67"
      noiseMode		      "Signal to noise ratio  (Eb/No)"
      EbNodB		      "9"
      EsNodB		      "10"
      SNRdB		      "10"
      bitsPerSym	      "3"
      Ps		      "1"
      Tsym		      "1"
      variance		      "1"
    }
    Block {
      BlockType		      Scope
      Name		      "Demod ver. Original"
      Ports		      [1]
      Position		      [565, 328, 595, 362]
      BackgroundColor	      "red"
      Location		      [422, 520, 746, 757]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "100"
      YMin		      "-1"
      YMax		      "7"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "20"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nScatter Plot\nScope"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [555, 169, 630, 221]
      FontSize		      10
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "40"
      numNewFrames	      "10"
      LineMarkers	      "Square"
      LineColors	      "[0 0 0]"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-5.5"
      xMax		      "5.525"
      yMin		      "-5.5125"
      yMax		      "5.5125"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[232 108 560 560]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nScatter Plot\nScope1"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [600, 14, 675, 66]
      FontSize		      10
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "40"
      numNewFrames	      "10"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-8.25994788233392"
      xMax		      "6.45955384091623"
      yMin		      "-7.29137425163292"
      yMax		      "7.42812747161723"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[232 108 560 560]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      Reference
      Name		      "DocBlock"
      Ports		      []
      Position		      [87, 70, 127, 109]
      BackgroundColor	      "green"
      DropShadow	      on
      ShowName		      off
      UserDataPersistent      on
      UserData		      "DataTag0"
      FontSize		      10
      SourceBlock	      "simulink/Model-Wide\nUtilities/DocBlock"
      SourceType	      "DocBlock"
      ShowPortLabels	      on
      DocumentType	      "Text"
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [50, 341, 90, 369]
      DialogController	      "Simulink.DDGSource"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "A"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto"
      Position		      [670, 100, 710, 130]
      DialogController	      "Simulink.DDGSource"
      GotoTag		      "A"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PAM\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [215, 329, 290, 381]
      FontSize		      10
      SourceBlock	      "commdigbbndam2/M-PAM\nDemodulator\nBaseband"
      SourceType	      "M-PAM Demodulator Baseband"
      M			      "8"
      OutType		      "Integer"
      Dec		      "Gray"
      PowType		      "Min. distance between symbols"
      MinDist		      "2"
      AvgPow		      "1"
      PeakPow		      "1"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PAM\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [300, 170, 375, 220]
      FontSize		      10
      SourceBlock	      "commdigbbndam2/M-PAM\nModulator\nBaseband"
      SourceType	      "M-PAM Modulator Baseband"
      M			      "8"
      InType		      "Integer"
      Enc		      "Gray"
      PowType		      "Min. distance between symbols"
      MinDist		      "2"
      AvgPow		      "1"
      PeakPow		      "1"
      numSamp		      "1"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [475, 326, 480, 364]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Quantizer
      Name		      "Quantizer"
      Position		      [130, 180, 160, 210]
      QuantizationInterval    "1"
    }
    Block {
      BlockType		      Saturate
      Name		      "Saturation"
      Position		      [220, 180, 250, 210]
      UpperLimit	      "7"
      LowerLimit	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [30, 180, 60, 210]
      SineType		      "Time based"
      Amplitude		      "3.6"
      Bias		      "3"
      Frequency		      "1/2/pi"
      SampleTime	      "1/10"
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Quantizer"
	DstPort			1
      }
      Branch {
	Points			[0, 90; 280, 0; 0, 50]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "M-PAM\nModulator\nBaseband"
      SrcPort		      1
      Points		      [45, 0]
      Branch {
	DstBlock		"Discrete-Time\nScatter Plot\nScope"
	DstPort			1
      }
      Branch {
	Points			[0, -80]
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      DstBlock		      "M-PAM\nDemodulator\nBaseband"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [25, 0; 5, 0]
      Branch {
	DstBlock		"Goto"
	DstPort			1
      }
      Branch {
	Points			[0, -75]
	DstBlock		"Discrete-Time\nScatter Plot\nScope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Quantizer"
      SrcPort		      1
      DstBlock		      "Saturation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "M-PAM\nDemodulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Demod ver. Original"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Saturation"
      SrcPort		      1
      DstBlock		      "M-PAM\nModulator\nBaseband"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    $ $   8    (    !          %    "
"\"     $   #;     0         0    VP   %1H:7,@;6]D96P@:7,@82 X+6%R>2!M;V1U;&%T"
";W(O9&5M;V1U;&%T;W(@8F%S960@;VX@4'5L<V4@06UP;&ET=61E($UO9'5L871I;VX@*%!!32DN#"
"0I9;W4@8V%N(&-H86YG92!T:&4@16(O3C @<&%R86UE=&5R(&EN('1H92!!5T=.(&-H86YN96P@8F"
"QO8VL@=&\\@<V5E('1H92 -\"F5F9F5C=\"!O9B!T:&4@8VAA;FYE;\"!N;VES92!O;B!T:&4@9&5"
"M;V1U;&%T960@<VEG;F%L+@T*(       "
  }
}

⌨️ 快捷键说明

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