📄 ch7example14.mdl
字号:
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ch7example14"
Location [351, 118, 1020, 572]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [350, 64, 430, 106]
FontSize 10
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "67"
noiseMode "Variance from mask"
EsNodB "10"
SNRdB "10"
Ps "1"
Tsym "1e-3"
variance "0.05"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [315, 153, 345, 182]
Output "Real and imag"
}
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [530, 156, 575, 204]
FontSize 10
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nScope"
SourceType "Discrete-Time Eye Diagram Scope"
showPlotting on
sampPerSymb "20"
offsetEye "0"
symbPerTrace "2"
numTraces "40"
numNewFrames "10"
showRendering off
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid on
showAxes off
yMin "-15.4"
yMax "15.47"
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 [530, 60, 575, 110]
FontSize 10
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "20"
offsetEye "10"
numTraces "100"
numNewFrames "40"
showRendering on
LineMarkers "."
LineColors "k"
fading off
render on
AxisGrid on
showAxes off
xMin "-15.7552689802236"
xMax "15.9011977140591"
yMin "-15.8370692250789"
yMax "15.8193974692038"
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 "M-PAM\nModulator\nBaseband"
Ports [1, 1]
Position [135, 60, 210, 110]
FontSize 10
SourceBlock "commdigbbndam2/M-PAM\nModulator\nBaseband"
SourceType "M-PAM Modulator Baseband"
M "8"
InType "Integer"
Enc "Binary"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
numSamp "20"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [240, 76, 285, 109]
InputSameDT off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [30, 63, 110, 107]
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
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [395, 144, 425, 176]
Location [472, 176, 802, 419]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.01"
YMin "-15"
YMax "15"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [105, 135, 135, 165]
SineType "Sample based"
Bias "1"
Samples "20"
Offset "15"
SampleTime "5e-5"
}
Block {
BlockType Terminator
Name "Terminator"
Position [400, 195, 420, 215]
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "M-PAM\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
Line {
SrcBlock "M-PAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -10]
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [85, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [10, 0; 0, 30]
DstBlock "Terminator"
DstPort 1
}
Annotation {
Name "升余弦基本波形下的8-PAM调制模型\n文件名:ch7exa"
"mple14.mdl"
Position [151, 204]
DropShadow on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -