📄 hop1.mdl
字号:
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [385, 95, 405, 115]
ShowName off
IconShape "round"
Inputs "+|-"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [220, 21, 255, 59]
SampleTime "Tout"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [220, 151, 255, 189]
SampleTime "Tout"
}
Block {
BlockType Outport
Name " "
Position [425, 98, 455, 112]
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [45, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [45, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [10, 0]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [10, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [15, 0; 0, -60]
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [15, 0; 0, 55]
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "out_1"
Position [645, 135, 665, 155]
ShowName off
InitialOutput "0"
}
Line {
SrcBlock "PAM/QAM/PSK\nFrequency\nUp-Converter"
SrcPort 1
Points [15, 0]
DstBlock "Inherit Shape"
DstPort 1
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0]
DstBlock "PAM/QAM/PSK\nFrequency\nUp-Converter"
DstPort 1
}
Line {
SrcBlock "Check Signal\nAttributes"
SrcPort 1
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Inherit Shape"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Check Signal\nAttributes"
DstPort 1
}
Branch {
Points [0, 75; 440, 0]
DstBlock "Inherit Shape"
DstPort 2
}
}
Line {
SrcBlock "1"
SrcPort 1
Points [50, 0]
DstBlock "PAM/QAM/PSK\nFrequency\nUp-Converter"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [225, 218, 305, 262]
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 SubSystem
Name "hopinng"
Ports [0, 1]
Position [215, 359, 315, 401]
TreatAsAtomicUnit off
System {
Name "hopinng"
Location [463, 171, 1251, 630]
Open off
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 [345, 313, 425, 357]
Orientation "left"
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "4"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [500, 310, 550, 360]
Orientation "left"
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "32"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [620, 313, 700, 357]
Orientation "left"
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 0 1]"
ini_sta "[1 1 0 1]"
shift "0"
Ts "1/400"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [440, 144, 470, 226]
Input "Real and imag"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [595, 86, 625, 119]
Location [174, 134, 1014, 708]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "0~-1"
YMax "15~1"
DataFormat "StructureWithTime"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [85, 55, 145, 85]
Orientation "left"
VariableName "s"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [350, 215, 380, 245]
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [240, 311, 290, 359]
Orientation "left"
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "4"
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [190, 188, 270, 232]
FontName "Arial"
SourceBlock "commcontsrc2/Voltage-Controlled\nOscillator"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "500"
Kc "100"
Ph "0"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [105, 221, 140, 259]
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [560, 176, 595, 214]
}
Block {
BlockType Outport
Name "Out1"
Position [675, 208, 705, 222]
}
Line {
SrcBlock "Zero-Order\nHold2"
SrcPort 1
Points [0, 20]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
Points [-155, 0; 0, -95]
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
Points [15, 0; 0, -30]
Branch {
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
Branch {
Points [0, -115]
Branch {
DstBlock "To Workspace"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
}
Line {
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 20]
DstBlock "Transport\nDelay"
DstPort 1
}
Branch {
Points [0, -45]
Branch {
Points [0, -55]
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
}
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
Points [40, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 10]
DstBlock "Zero-Order\nHold2"
DstPort 1
}
}
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "M-PSK\nModulator\nPassband"
DstPort 1
}
Branch {
Points [0, -80; 420, 0; 0, 70]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "M-PSK\nModulator\nPassband"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "M-PSK\nDemodulator\nPassband"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nPassband"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "hopinng"
SrcPort 1
Points [15, 0; 15, 0]
Branch {
Points [0, -115]
DstBlock "M-PSK\nModulator\nPassband"
DstPort 2
}
Branch {
Points [280, 0; 0, -100]
DstBlock "M-PSK\nDemodulator\nPassband"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -