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

📄 fc_bpsk.mdl

📁 BPSK传输系统的仿真模型。对于simulink的初学者有帮助。
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 3]
      Position		      [245, 241, 250, 279]
      Orientation	      "left"
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "3"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nEye Diagram\nScope"
      Tag		      "EyeDiagram"
      Ports		      [1]
      Position		      [685, 301, 730, 349]
      SourceBlock	      "commsink2/Discrete-Time\nEye Diagram\nScope"
      SourceType	      "Discrete-Time Eye Diagram Scope"
      showPlotting	      on
      sampPerSymb	      "8"
      offsetEye		      "0"
      symbPerTrace	      "2"
      numTraces		      "100"
      numNewFrames	      "25"
      showRendering	      off
      LineStyles	      "-"
      LineColors	      "b"
      dupPoints		      on
      fading		      on
      render		      on
      AxisGrid		      on
      showAxes		      off
      yMin		      "-1.5"
      yMax		      "1.5"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      showFigure	      off
      openScopeAtSimStart     on
      dispDiagram	      "In-phase and Quadrature"
      FrameNumber	      off
      FigPos		      "[360 66 560 644]"
      figTitle		      "Eye Diagram"
      block_type_	      "eye"
      numLinesMax	      "8"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nEye Diagram\nScope1"
      Tag		      "EyeDiagram"
      Ports		      [1]
      Position		      [840, 301, 885, 349]
      SourceBlock	      "commsink2/Discrete-Time\nEye Diagram\nScope"
      SourceType	      "Discrete-Time Eye Diagram Scope"
      showPlotting	      on
      sampPerSymb	      "8"
      offsetEye		      "0"
      symbPerTrace	      "2"
      numTraces		      "100"
      numNewFrames	      "25"
      showRendering	      off
      LineStyles	      "-"
      LineColors	      "b"
      dupPoints		      on
      fading		      on
      render		      on
      AxisGrid		      on
      showAxes		      off
      yMin		      "-1.5"
      yMax		      "1.5"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      showFigure	      on
      openScopeAtSimStart     on
      dispDiagram	      "In-phase and Quadrature"
      FrameNumber	      off
      FigPos		      "[360 66 560 644]"
      figTitle		      "Eye Diagram"
      block_type_	      "eye"
      numLinesMax	      "8"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nScatter Plot\nScope"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [555, 300, 600, 350]
      Orientation	      "left"
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      showPlotting	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "100"
      numNewFrames	      "25"
      showRendering	      off
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      showAxes		      off
      xMin		      "-1.5"
      xMax		      "1.5"
      yMin		      "-1.5"
      yMax		      "1.5"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      showFigure	      off
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[360 150 560 560]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [30, 237, 165, 313]
      Orientation	      "left"
      Format		      "long"
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [305, 177, 380, 228]
      Orientation	      "left"
      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		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Reference
      Name		      "FIR\nInterpolation"
      Ports		      [1, 1]
      Position		      [810, 194, 875, 246]
      Orientation	      "left"
      SourceBlock	      "dspmlti3/FIR\nInterpolation"
      SourceType	      "FIR Interpolation"
      h			      "rcosine(1,8,[],0.3,1)"
      L			      "8"
      framing		      "Maintain input frame size"
      outputBufInitCond	      "0"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [195, 241, 200, 279]
      Orientation	      "left"
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Random Integer\nGenerator"
      Ports		      [0, 1]
      Position		      [125, 43, 205, 87]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      mul		      "2"
      seed		      "12345"
      Ts		      "0.001"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [945, 50, 980, 100]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "512"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "64"
      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		      "[-Fs/2...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-45.8737519646443"
      YMax		      "15.5408606772583"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [130, 155, 190, 185]
      Orientation	      "left"
      VariableName	      "simout"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure"
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      Points		      [230, 0]
      Branch {
	DstBlock		"BPSK\nModulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 125]
	DstBlock		"Error Rate\nCalculation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "BPSK\nModulator\nBaseband"
      SrcPort		      1
      Points		      [240, 0]
      Branch {
	Points			[30, 0]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
      Branch {
	Points			[0, 155]
	DstBlock		"FIR\nInterpolation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [0, -5; -20, 0]
      Branch {
	DstBlock		"BPSK\nDemodulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 110]
	Branch {
	  DstBlock		  "Discrete-Time\nScatter Plot\nScope"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "Discrete-Time\nEye Diagram\nScope"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "FIR\nInterpolation"
      SrcPort		      1
      Points		      [0, 0; -25, 0]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Discrete-Time\nEye Diagram\nScope1"
	DstPort			1
      }
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Error Rate\nCalculation"
      SrcPort		      1
      Points		      [0, 55]
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [0, 0; -20, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	Points			[0, -80]
	DstBlock		"To Workspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [-10, 0]
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "BPSK\nDemodulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Error Rate\nCalculation"
      DstPort		      2
    }
  }
}

⌨️ 快捷键说明

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