fh.mdl
来自「一些直扩和跳频的程序」· MDL 代码 · 共 935 行 · 第 1/2 页
MDL
935 行
Name "Math\nFunction"
Ports [1, 1]
Position [515, 225, 545, 255]
Operator "conj"
}
Block {
BlockType Product
Name "Product\n跳频"
Ports [2, 1]
Position [245, 106, 290, 139]
InputSameDT off
}
Block {
BlockType Product
Name "Product1\n解跳"
Ports [2, 1]
Position [565, 116, 610, 149]
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [605, 41, 635, 74]
Orientation "left"
Location [473, 470, 797, 709]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.2"
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave\n单频干扰源"
Position [340, 175, 370, 205]
SineType "Time based"
Frequency "2*pi*150"
SampleTime "1/4000"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [650, 75, 685, 125]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
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 "-10.2848426195927"
YMax "23.5700499965559"
YLabel "Magnitude, dB"
LineProperties off
LineDisables "on|on|off|on"
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType Reference
Name "Spectrum\nScope1"
Ports [1]
Position [495, 135, 530, 185]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
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 "-10"
YMax "23.5700499965559"
YLabel "Magnitude, dB"
LineProperties off
LineDisables "on|on|off|on"
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType Reference
Name "Spectrum\nScope2"
Ports [1]
Position [435, 35, 470, 85]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "500"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber off
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 "-70"
YMax "23.57"
YLabel "Magnitude, dB"
LineProperties off
LineDisables "on|on|off|on"
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType Reference
Name "Spectrum\nScope3"
Ports [1]
Position [255, 35, 290, 85]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
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 "-70"
YMax "23.5700499965559"
YLabel "Magnitude, dB"
LineProperties off
LineDisables "on|on|off|on"
LineMarkers "|None"
LineColors "|[1 0 0]"
}
Block {
BlockType SubSystem
Name "Subsystem\nPN Sequence\n"
Ports [0, 1]
Position [30, 210, 70, 270]
TreatAsAtomicUnit off
System {
Name "Subsystem\nPN Sequence\n"
Location [0, 74, 527, 189]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [180, 28, 260, 72]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "5"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [115, 32, 165, 68]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [20, 28, 100, 72]
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/250"
frameBased on
sampPerFrame "5"
reset off
}
Block {
BlockType Outport
Name "Out1"
Position [280, 43, 310, 57]
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [425, 115, 445, 135]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "M-FSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Integer Delay"
DstPort 1
}
}
Line {
SrcBlock "M-FSK\nModulator\nBaseband"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product\n跳频"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Spectrum\nScope3"
DstPort 1
}
}
Line {
Name "跳频载波"
Labels [0, 0]
SrcBlock "M-FSK\nModulator\nBaseband1"
SrcPort 1
Points [0, -80]
DstBlock "Product\n跳频"
DstPort 2
}
Line {
SrcBlock "Subsystem\nPN Sequence\n"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -30]
DstBlock "M-FSK\nModulator\nBaseband1"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "M-FSK\nModulator\nBaseband2"
DstPort 1
}
}
Line {
SrcBlock "Product\n跳频"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Spectrum\nScope2"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Product1\n解跳"
DstPort 2
}
Line {
SrcBlock "Product1\n解跳"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "M-FSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Spectrum\nScope"
DstPort 1
}
}
Line {
SrcBlock "M-FSK\nModulator\nBaseband2"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "M-FSK\nDemodulator\nBaseband"
SrcPort 1
Points [60, 0; 0, -35; -145, 0; 0, -35; -25, 0]
Branch {
Points [0, -10]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Sine Wave\n单频干扰源"
SrcPort 1
Points [60, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product1\n解跳"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Spectrum\nScope1"
DstPort 1
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [75, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Scope"
DstPort 1
}
}
Annotation {
Name "跳频扩频传输系统仿真模型\n文件名:ch7example28."
"mdl"
Position [303, 275]
DropShadow on
FontName "Arial"
FontSize 12
}
Annotation {
Name "本地跳频载波\n"
Position [583, 189]
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?