📄 untitled1.mdl
字号:
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [255, 188, 335, 232]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "2"
seed "37"
Ts "1/BitRate"
frameBased on
sampPerFrame "BitRate"
orient off
}
Block {
BlockType Outport
Name "Out1"
Position [645, 103, 675, 117]
}
Block {
BlockType Outport
Name "Out2"
Position [690, 203, 720, 217]
Port "2"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -100]
DstBlock "Out1"
DstPort 1
}
Branch {
DstBlock "Convolutional\nEncoder"
DstPort 1
}
}
Line {
SrcBlock "M-FSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Convolutional\nEncoder"
SrcPort 1
DstBlock "M-FSK\nModulator\nBaseband"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2]
Position [530, 34, 580, 136]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [159, 407, 708, 662]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 13, 70, 27]
}
Block {
BlockType Inport
Name "In2"
Position [25, 63, 55, 77]
Port "2"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [415, 31, 490, 84]
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 "M-FSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [80, 46, 155, 94]
SourceBlock "commdigbbndfm2/M-FSK\nDemodulator\nBaseband"
SourceType "M-FSK Demodulator Baseband"
M "2"
OutType "Bit"
Dec "Binary"
freqSep "FrequencySeparation"
numSamp "SamplesPerSymbol"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [520, 41, 560, 79]
InputPortWidth "3"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [575, 45, 635, 75]
VariableName "BitErrorRate"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [195, 40, 315, 100]
FontSize 10
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(9, [753 561])"
dectype "Hard Decision"
nsdecb "4"
tbdepth "192"
opmode "Truncated"
reset off
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [325, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "M-FSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "M-FSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Viterbi Decoder"
DstPort 1
}
Line {
SrcBlock "Viterbi Decoder"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [305, 80, 345, 140]
TreatAsAtomicUnit off
System {
Name "Subsystem2"
Location [293, 316, 810, 551]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [300, 29, 380, 71]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "67"
noiseMode "Signal to noise ratio (SNR)"
EsNodB "10"
SNRdB "SNR"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [125, 28, 205, 72]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
Fd "Fd"
simTs "0.5/BitRate/SamplesPerSymbol"
delayVec "[0 2e-6]"
gainVecdB "[0 -3]"
normGain on
Seed "67"
}
Block {
BlockType Reference
Name "Rician Fading\nChannel"
Ports [1, 1]
Position [130, 103, 210, 147]
FontSize 10
SourceBlock "commchan2/Rician Fading\nChannel"
SourceType "Rician Fading Channel"
K "1"
Fd "Fd"
simTs "0.5/BitRate/SamplesPerSymbol"
delayVec "0"
gainVecdB "0"
Seed "79"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [240, 40, 260, 60]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [405, 43, 435, 57]
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Rician Fading\nChannel"
DstPort 1
}
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Rician Fading\nChannel"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Subsystem1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
DstBlock "Subsystem2"
DstPort 1
}
Line {
SrcBlock "Subsystem2"
SrcPort 1
DstBlock "Subsystem1"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -