📄 qpsk.mdl
字号:
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [410, 285, 460, 335]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nScope"
SourceType "Discrete-Time Eye Diagram Scope"
showPlotting on
sampPerSymb "4"
offsetEye "0"
symbPerTrace "1"
numTraces "40"
numNewFrames "10"
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 "[232 34 560 644]"
figTitle "Eye Diagram"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [540, 285, 585, 335]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "1"
offsetEye "0"
numTraces "40"
numNewFrames "10"
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 "[232 118 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [15, 260, 105, 290]
Orientation "left"
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [15, 225, 105, 255]
Orientation "left"
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [15, 185, 105, 215]
Orientation "left"
ShowName off
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2]
Position [145, 210, 220, 265]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Workspace"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "1000"
maxBits "1e6"
}
Block {
BlockType Reference
Name "FIR\nInterpolation"
Ports [1, 1]
Position [370, 14, 435, 66]
SourceBlock "dspmlti3/FIR\nInterpolation"
SourceType "FIR Interpolation"
h "fir1(15,1/4)"
L "8"
framing "Maintain input frame size"
outputBufInitCond "0"
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [280, 215, 360, 265]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
OutType "Integer"
Dec "Binary"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [260, 16, 335, 64]
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
InType "Integer"
Enc "Binary"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [130, 18, 210, 62]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "4"
seed "37"
Ts "0.001"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [55, 360, 85, 390]
Orientation "left"
NamePlacement "alternate"
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [395, 105, 430, 155]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "128"
Overlap "64"
inpFftLenInherit on
FFTlength "128"
numAvg "2"
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 "-10"
YMax "10"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType ToWorkspace
Name "To Work space"
Position [25, 35, 85, 65]
Orientation "left"
NamePlacement "alternate"
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 185]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "FIR\nInterpolation"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Spectrum\nScope"
DstPort 1
}
}
Line {
SrcBlock "FIR\nInterpolation"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [10, 0; 0, 200; -60, 0]
Branch {
DstBlock "QPSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
}
Line {
SrcBlock "QPSK\nDemodulator\nBaseband"
SrcPort 1
Points [-20, 0; 0, 10]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
Points [0, 125; -105, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -100; -15, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [-15, 0; 0, -35]
Branch {
DstBlock "Display1"
DstPort 1
}
Branch {
Points [0, -40]
Branch {
DstBlock "Display2"
DstPort 1
}
Branch {
Points [0, -150]
DstBlock "To Work space"
DstPort 1
}
}
}
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -