📄 dsss3.mdl
字号:
FontWeight "normal"
FontAngle "normal"
}
System {
Name "dsss3"
Location [2, 81, 1014, 722]
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 [505, 84, 585, 126]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "1237"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "-20"
SNRdB "10"
Ps "1"
Tsym "0.001/31"
variance "1"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [125, 404, 215, 496]
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [125, 312, 200, 363]
Orientation "left"
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nPassband"
Ports [1, 1]
Position [840, 89, 915, 141]
SourceBlock "commdigpbndpm2/M-PSK\nDemodulator\nPassband"
SourceType "M-PSK Demodulator Passband"
M "2"
OutType "Bit"
Dec "Binary"
td "0.01"
numSamp "1"
Fc "3000"
Ph "pi/2"
InSamp "0.001/31"
}
Block {
BlockType Reference
Name "M-PSK\nModulator\nPassband"
Ports [1, 1]
Position [270, 69, 345, 121]
SourceBlock "commdigpbndpm2/M-PSK\nModulator\nPassband"
SourceType "M-PSK Modulator Passband"
M "2"
InType "Bit"
Enc "Binary"
td "0.01"
numSamp "1"
Fc "3000"
Ph "pi/2"
OutSamp "0.001/31"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [145, 163, 225, 207]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 1 1 0 1]"
ini_sta "[0 0 1 0 0]"
shift "0"
Ts "0.01/31"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [415, 86, 460, 119]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [640, 95, 685, 130]
NamePlacement "alternate"
InputSameDT off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [120, 73, 200, 117]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "2"
seed "12345"
Ts "0.01"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Relay
Name "Relay"
Position [280, 170, 310, 200]
OnSwitchValue "0.5"
OffSwitchValue "0.5"
OffOutputValue "-1"
}
Block {
BlockType Reference
Name "Spectrum\nScope2"
Ports [1]
Position [465, 15, 500, 65]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "256"
inpFftLenInherit on
FFTlength "512"
numAvg "4"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties on
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr off
XIncr "0.2"
XLabel "Samples"
YUnits "dB"
YMin "-50"
YMax "20"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [520, 470, 555, 510]
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [360, 21, 395, 59]
SampleTime "0.01/31"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "M-PSK\nModulator\nPassband"
DstPort 1
}
Branch {
Points [0, -55]
Branch {
DstBlock "Zero-Order\nHold2"
DstPort 1
}
Branch {
Points [-170, 0; 0, 210; 140, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
}
Line {
SrcBlock "M-PSK\nModulator\nPassband"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [-40, 0; 0, 110]
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold2"
SrcPort 1
DstBlock "Spectrum\nScope2"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "M-PSK\nDemodulator\nPassband"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nPassband"
SrcPort 1
Points [10, 0; 0, 235]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [60, 0]
Branch {
Points [0, -75]
DstBlock "Product"
DstPort 2
}
Branch {
Points [240, 0; 0, -65]
DstBlock "Product1"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -