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

📄 qpsk.mdl

📁 无线通信系统中的常用仿真代码QPSK调制的MATLAB代码
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      block_type_	      "eye"
      numLinesMax	      "8"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nScatter Plot\nScope"
      Tag		      "ScatterPlot"
      Ports		      [1]
      Position		      [450, 255, 500, 295]
      BackgroundColor	      "[0.768627, 0.882353, 1.000000]"
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "commsink2/Discrete-Time\nScatter Plot\nScope"
      SourceType	      "Discrete-Time Scatter Plot Scope"
      ShowPortLabels	      on
      sampPerSymb	      "1"
      offsetEye		      "0"
      numTraces		      "400"
      numNewFrames	      "10"
      LineMarkers	      "."
      LineColors	      "b"
      fading		      on
      render		      on
      AxisGrid		      on
      xMin		      "-1.5"
      xMax		      "1.5"
      yMin		      "-1.5"
      yMax		      "1.5"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      openScopeAtSimStart     on
      FrameNumber	      off
      FigPos		      "[60 447 400 400]"
      figTitle		      "Scatter Plot"
      numLinesMax	      "8"
      block_type_	      "scatter"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [635, 192, 710, 263]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "2*4"
      st_delay		      "500"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [65, 262, 105, 288]
      DialogController	      "Simulink.DDGSource"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "A"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto"
      Position		      [742, 15, 768, 65]
      Orientation	      "up"
      NamePlacement	      "alternate"
      DialogController	      "Simulink.DDGSource"
      GotoTag		      "A"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [525, 220, 600, 270]
      BackgroundColor	      "[0.768627, 0.882353, 1.000000]"
      SourceBlock	      "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
      SourceType	      "M-PSK Demodulator Baseband"
      M			      "4"
      OutType		      "Integer"
      Dec		      "Binary"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [125, 79, 200, 131]
      BackgroundColor	      "[0.768627, 0.882353, 1.000000]"
      SourceBlock	      "commdigbbndpm2/M-PSK\nModulator\nBaseband"
      SourceType	      "M-PSK Modulator Baseband"
      M			      "4"
      InType		      "Integer"
      Enc		      "Binary"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nPhase Recovery"
      Ports		      [1, 2]
      Position		      [280, 234, 395, 281]
      BackgroundColor	      "[0.768627, 0.882353, 1.000000]"
      SourceBlock	      "commphrec2/M-PSK\nPhase Recovery"
      SourceType	      "M-PSK Phase Recovery"
      ShowPortLabels	      on
      M			      "4"
      intPeriod		      "100"
    }
    Block {
      BlockType		      Reference
      Name		      "Phase/\nFrequency\nOffset"
      Ports		      [1, 1]
      Position		      [430, 94, 495, 136]
      BackgroundColor	      "[0.768627, 0.882353, 1.000000]"
      SourceBlock	      "commrflib2/Phase//\nFrequency\nOffset"
      SourceType	      "Phase/Frequency Offset"
      ShowPortLabels	      on
      freqOffset	      "0"
      phaseOffset	      "10"
    }
    Block {
      BlockType		      Reference
      Name		      "Raised Cosine\nReceive Filter"
      Ports		      [1, 1]
      Position		      [615, 93, 695, 137]
      SourceBlock	      "commfilt2/Raised Cosine\nReceive Filter"
      SourceType	      "Raised Cosine Receive Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      N			      "8"
      D			      "4"
      R			      "0.2"
      sampMode		      "Frame-based"
      rateMode		      "None"
      downFactor	      "8"
      downOffset	      "0"
      checkGain		      "Normalized"
      filterGain	      "1"
      checkCoeff	      off
      variableName	      "rcRxFilt"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Raised Cosine\nTransmit Filter"
      Ports		      [1, 1]
      Position		      [225, 83, 305, 127]
      SourceBlock	      "commfilt2/Raised Cosine\nTransmit Filter"
      SourceType	      "Raised Cosine Transmit Filter"
      ShowPortLabels	      on
      filtType		      "Square root"
      D			      "4"
      R			      "0.2"
      sampMode		      "Frame-based"
      N			      "8"
      checkGain		      "Normalized"
      filterGain	      "1"
      checkCoeff	      off
      variableName	      "rcTxFilt"
      launchFVT		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Random Integer\nGenerator"
      Ports		      [0, 1]
      Position		      [20, 83, 100, 127]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "4"
      seed		      "37"
      Ts		      "1/100"
      frameBased	      on
      sampPerFrame	      "100"
      orient		      off
    }
    Block {
      BlockType		      Display
      Name		      "SER Display"
      Ports		      [1]
      Position		      [730, 195, 815, 265]
      Decimation	      "1"
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Ports		      [1, 1]
      Position		      [355, 395, 395, 435]
      InputPortWidth	      "100"
    }
    Block {
      BlockType		      Reference
      Name		      "Squaring\nTiming Recovery"
      Ports		      [1, 2]
      Position		      [130, 245, 250, 300]
      SourceBlock	      "commtimrec2/Squaring\nTiming Recovery"
      SourceType	      "Squaring Timing Recovery"
      ShowPortLabels	      on
      numSymb		      "100"
      sampPerSymb	      "8"
    }
    Block {
      BlockType		      Reference
      Name		      "Variable\nFractional Delay"
      Ports		      [2, 1]
      Position		      [325, 95, 410, 135]
      SourceBlock	      "dspsigops/Variable\nFractional Delay"
      SourceType	      "Variable Fractional Delay"
      mode		      "Linear Interpolation"
      dmax		      "100"
      L			      "4"
      R			      "10"
      alpha		      "1"
      ic		      "0"
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 105]
	DstBlock		"Error Rate\nCalculation"
	DstPort			1
      }
      Branch {
	DstBlock		"M-PSK\nModulator\nBaseband"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Raised Cosine\nReceive Filter"
      SrcPort		      1
      Points		      [55, 0]
      Branch {
	DstBlock		"Goto"
	DstPort			1
      }
      Branch {
	DstBlock		"Discrete-Time\nEye Diagram\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      DstBlock		      "Raised Cosine\nReceive Filter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Variable\nFractional Delay"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Raised Cosine\nTransmit Filter"
      SrcPort		      1
      DstBlock		      "Variable\nFractional Delay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Variable\nFractional Delay"
      SrcPort		      1
      DstBlock		      "Phase/\nFrequency\nOffset"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Squaring\nTiming Recovery"
      SrcPort		      2
      Points		      [0, 130]
      DstBlock		      "Selector"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Selector"
      SrcPort		      1
      DstBlock		      "Delay Estimate"
      DstPort		      1
    }
    Line {
      SrcBlock		      "M-PSK\nDemodulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Error Rate\nCalculation"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation"
      SrcPort		      1
      DstBlock		      "SER Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      DstBlock		      "Squaring\nTiming Recovery"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Phase/\nFrequency\nOffset"
      SrcPort		      1
      DstBlock		      "AWGN\nChannel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Squaring\nTiming Recovery"
      SrcPort		      1
      DstBlock		      "M-PSK\nPhase Recovery"
      DstPort		      1
    }
    Line {
      SrcBlock		      "M-PSK\nPhase Recovery"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"M-PSK\nDemodulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 30]
	DstBlock		"Discrete-Time\nScatter Plot\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "M-PSK\nPhase Recovery"
      SrcPort		      2
      Points		      [0, 90]
      DstBlock		      "Carrier Phase Estimate"
      DstPort		      1
    }
    Line {
      SrcBlock		      "M-PSK\nModulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Raised Cosine\nTransmit Filter"
      DstPort		      1
    }
    Annotation {
      Name		      "QPSK"
      Position		      [51, 43]
      ForegroundColor	      "blue"
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Colored icons are new compared\nto the squaring"
" timing recovery\nexample, doc_squaring.mdl."
      Position		      [101, 386]
      FontName		      "Arial"
      FontSize		      11
    }
  }
}

⌨️ 快捷键说明

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