📄 ch7example15.mdl
字号:
Position [605, 65, 655, 115]
FontSize 10
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [605, 185, 655, 235]
FontSize 10
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [445, 180, 490, 230]
FontSize 10
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting off
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "40"
showRendering on
LineMarkers "."
LineColors "k"
fading off
render on
AxisGrid on
showAxes off
xMin "-1.30022094087295"
xMax "1.27430701005045"
yMin "-1.32870845904417"
yMax "1.24581949187924"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure on
openScopeAtSimStart on
FrameNumber off
FigPos "[232 118 560 560]"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope1"
Tag "ScatterPlot"
Ports [1]
Position [330, 180, 375, 230]
FontSize 10
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "40"
showRendering on
LineMarkers "."
LineColors "k"
fading off
render on
AxisGrid on
showAxes off
xMin "-1.30022094087295"
xMax "1.27430701005045"
yMin "-1.32870845904417"
yMax "1.24581949187924"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure on
openScopeAtSimStart on
FrameNumber off
FigPos "[232 118 560 560]"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [690, 63, 790, 127]
FontSize 10
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [680, 172, 755, 223]
FontSize 10
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 "Frame Status\nConversion"
Ports [1, 1]
Position [540, 72, 590, 108]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [540, 192, 590, 228]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [110, 88, 175, 132]
FontSize 10
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "3"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [430, 85, 505, 135]
FontSize 10
SourceBlock "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "8"
OutType "Bit"
Dec "Gray"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType Reference
Name "M-PSK\nModulator\nBaseband"
Ports [1, 1]
Position [220, 84, 295, 136]
FontSize 10
SourceBlock "commdigbbndpm2/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "8"
InType "Bit"
Enc "Gray"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [25, 85, 90, 135]
FontName "Arial"
FontSize 10
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "8"
seed "37"
Ts "1e-3"
frameBased off
sampPerFrame "1"
orient off
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -40; 330, 0]
DstBlock "Frame Status\nConversion"
DstPort 1
}
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Discrete-Time\nScatter Plot\nScope1"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
}
Line {
SrcBlock "Buffer"
SrcPort 1
Points [0, 95]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nBaseband"
SrcPort 1
Points [10, 0; 0, 100]
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [25, 0; 0, -40; -110, 0]
DstBlock "Display"
DstPort 1
}
Annotation {
Name "\\pi/8-8PSK基带调制模型\n文件名:ch7example15.m"
"dl"
Position [101, 199]
DropShadow on
TeXMode on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -