📄 ds.mdl
字号:
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Product\n扩频"
SrcPort 1
DstBlock "Bipolar to\nUnipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Product\n扩频"
DstPort 1
}
Line {
SrcBlock "Bipolar to\nUnipolar\nConverter"
SrcPort 1
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [115, 0; 0, -60]
DstBlock "Product\n扩频"
DstPort 2
}
Line {
SrcBlock "Rate Transition"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "CDMA"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [545, 19, 640, 81]
ShowName off
FontSize 10
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [450, 20, 525, 75]
NamePlacement "alternate"
ShowName off
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 "Integer Delay"
Ports [1, 1]
Position [350, 15, 405, 55]
FontSize 10
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "2"
ic "0"
reset_popup "None"
}
Block {
BlockType Product
Name "Product1\n解扩"
Ports [2, 1]
Position [245, 106, 290, 139]
InputSameDT off
}
Block {
BlockType Reference
Name "Rate Transition1"
Ports [1, 1]
Position [525, 189, 580, 231]
FontSize 10
SourceBlock "simulink/Signal\nAttributes/Rate Transition"
SourceType "Rate_Transition"
DataIntegrity on
DeterministicTransfer on
TransitionType "Slow to fast"
InitCond "0"
}
Block {
BlockType Reference
Name "Rate Transition2"
Ports [1, 1]
Position [525, 104, 580, 146]
FontSize 10
SourceBlock "simulink/Signal\nAttributes/Rate Transition"
SourceType "Rate_Transition"
DataIntegrity on
DeterministicTransfer on
TransitionType "Slow to fast"
InitCond "0"
}
Block {
BlockType Reference
Name "Rate Transition3"
Ports [1, 1]
Position [290, 199, 345, 241]
FontSize 10
SourceBlock "simulink/Signal\nAttributes/Rate Transition"
SourceType "Rate_Transition"
DataIntegrity on
DeterministicTransfer on
TransitionType "Slow to fast"
InitCond "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [670, 21, 700, 54]
Location [527, 482, 851, 721]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.4"
YMin "-2~-2"
YMax "2~2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave\n单频干扰源"
Position [110, 15, 140, 45]
SineType "Time based"
Frequency "2*pi*300"
SampleTime "1/2000"
}
Block {
BlockType Reference
Name "Spectrum\nScope1解扩输出"
Ports [1]
Position [665, 185, 700, 235]
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit on
FFTlength "1024"
numAvg "500"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[232 258 560 420]"
AxisProperties on
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-40"
YMax "25"
YLabel "Magnitude, dB"
LineProperties off
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType Reference
Name "Spectrum\nScope2接收信号"
Ports [1]
Position [430, 195, 465, 245]
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit on
FFTlength "1024"
numAvg "500"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[232 258 560 420]"
AxisProperties on
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-40"
YMax "25"
YLabel "Magnitude, dB"
LineProperties off
LineMarkers "|None"
LineColors "|[0 0 1]"
}
Block {
BlockType Reference
Name "Spectrum\nScope解调输出"
Ports [1]
Position [665, 100, 700, 150]
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit on
FFTlength "1024"
numAvg "500"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[232 258 560 420]"
AxisProperties on
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-40"
YMax "25"
YLabel "Magnitude, dB"
LineProperties off
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [185, 65, 205, 85]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [130, 172, 195, 208]
ShowName off
FontSize 10
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter2"
Ports [1, 1]
Position [435, 107, 500, 143]
ShowName off
FontSize 10
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Positive"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [605, 105, 640, 145]
FontSize 10
SampleTime "1/8000"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [605, 190, 640, 230]
FontSize 10
SampleTime "1/8000"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [370, 200, 405, 240]
FontSize 10
SampleTime "1/8000"
}
Block {
BlockType Reference
Name "本地PN序列"
Ports [0, 1]
Position [30, 168, 110, 212]
FontSize 10
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1/2000"
frameBased off
sampPerFrame "1"
reset off
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "Spectrum\nScope解调输出"
DstPort 1
}
Line {
SrcBlock "Rate Transition2"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "CDMA Trans."
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
DstBlock "Spectrum\nScope1解扩输出"
DstPort 1
}
Line {
SrcBlock "Rate Transition1"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "本地PN序列"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [30, 0]
DstBlock "Product1\n解扩"
DstPort 2
}
Line {
SrcBlock "Product1\n解扩"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "BPSK\nDemodulator\nBaseband1"
DstPort 1
}
Branch {
Points [0, 65; 195, 0; 0, 20]
DstBlock "Rate Transition1"
DstPort 1
}
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter2"
DstPort 1
}
Branch {
Points [0, -65; 20, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
Points [0, 25; 220, 0]
DstBlock "Scope"
DstPort 2
}
}
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter2"
SrcPort 1
DstBlock "Rate Transition2"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator发送信源"
SrcPort 1
DstBlock "Integer Delay"
DstPort 1
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, -20; 220, 0]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Unit Delay2"
SrcPort 1
DstBlock "Spectrum\nScope2接收信号"
DstPort 1
}
Line {
SrcBlock "Rate Transition3"
SrcPort 1
DstBlock "Unit Delay2"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0; 0, 40]
Branch {
DstBlock "Product1\n解扩"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Rate Transition3"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sine Wave\n单频干扰源"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 1
}
Annotation {
Name "直接扩频传输系统仿真模型\n文件名:ch7example26."
"mdl"
Position [166, 248]
DropShadow on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -