📄 ch7example20.mdl
字号:
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ch7example20"
Location [69, 147, 985, 393]
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 "CPFSK Modulator\nBaseband"
Ports [1, 1]
Position [425, 14, 500, 66]
SourceBlock "commdigbbndcpm2/CPFSK Modulator\nBaseband"
SourceType "CPFSK Modulator Baseband"
Mnum "2"
inputType "Integer"
mappingType "Binary"
modIdx ".5"
phaseOffset "0"
samplesPerSymbol "80"
}
Block {
BlockType Reference
Name "CPFSK Modulator\nBaseband1"
Ports [1, 1]
Position [425, 104, 500, 156]
SourceBlock "commdigbbndcpm2/CPFSK Modulator\nBaseband"
SourceType "CPFSK Modulator Baseband"
Mnum "2"
inputType "Integer"
mappingType "Binary"
modIdx ".5"
phaseOffset "0"
samplesPerSymbol "80"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [235, 41, 240, 79]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [630, 115, 675, 165]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "1"
offsetEye "0"
numTraces "300"
numNewFrames "2"
showRendering off
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
showAxes on
xMin "-5"
xMax "5"
yMin "-5"
yMax "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 Reference
Name "Discrete-Time\nSignal Trajectory\nScope"
Tag "SignalTrajectory"
Ports [1]
Position [630, 15, 675, 65]
SourceBlock "commsink2/Discrete-Time\nSignal Trajectory\nSco"
"pe"
SourceType "Discrete-Time Signal Trajectory Scope"
showPlotting on
sampPerSymb "80"
offsetEye "0"
numTraces "100"
numNewFrames "10"
showRendering off
LineStyles "-"
LineColors "k"
fading off
render on
AxisGrid on
showAxes on
xMin "-3.3"
xMax "3.315"
yMin "-3.3"
yMax "3.315"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure off
openScopeAtSimStart on
FrameNumber off
FigPos "[232 118 560 560]"
figTitle "Signal Trajectory"
numLinesMax "8"
block_type_ "xy"
}
Block {
BlockType Fcn
Name "Fcn"
Position [265, 35, 325, 65]
Expr "2*u-1"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [265, 85, 325, 115]
Expr "1-2*u"
}
Block {
BlockType Gain
Name "Gain"
Position [520, 25, 550, 55]
Gain "2"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [135, 38, 215, 82]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [355, 76, 400, 109]
InputSameDT off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [35, 38, 115, 82]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "4"
seed "37"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [565, 30, 585, 50]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, 30]
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 35]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -10]
DstBlock "CPFSK Modulator\nBaseband"
DstPort 1
}
}
Line {
SrcBlock "CPFSK Modulator\nBaseband"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [5, 0]
DstBlock "CPFSK Modulator\nBaseband1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "CPFSK Modulator\nBaseband1"
SrcPort 1
Points [70, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Discrete-Time\nSignal Trajectory\nScope"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
}
Annotation {
Name "2幅度CPFSK信号的相位轨迹图仿真模型\n文件名:ch7e"
"xample20.mdl"
Position [149, 139]
DropShadow on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -