📄 siso.mdl
字号:
Name "Display"
Ports [1]
Position [110, 468, 185, 542]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [920, 443, 995, 517]
Decimation "1"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [300, 330, 340, 370]
Inputs "*/"
InputSameDT off
OutDataTypeMode "double"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [800, 257, 875, 308]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1100"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop on
numErr "2000"
maxBits "1000000000000000"
}
Block {
BlockType Reference
Name "Find Delay"
Ports [2, 1]
Position [800, 458, 880, 502]
SourceBlock "commutil2/Find Delay"
SourceType "Find Delay"
ShowPortLabels on
corrLength "3000"
chgSigOP off
stopUpdate off
numConstDelay "3"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [190, 345, 250, 375]
MATLABFcn "neicha"
OutputDimensions "[511 1]"
Output1D off
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [370, 64, 405, 106]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [575, 34, 630, 76]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [735, 33, 815, 77]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "Fd"
simTs "1/10000/511*500"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "73"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [360, 331, 400, 369]
Elements "[2:511]"
InputPortWidth "511"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [125, 341, 165, 379]
Elements "[1:51:511]"
InputPortWidth "511"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [535, 331, 575, 369]
Elements "[1:50]"
InputPortWidth "51"
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [390, 461, 430, 499]
Elements "[1]"
InputPortWidth "3"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [510, 465, 570, 495]
VariableName "BitErrorRate"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [650, 31, 700, 79]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer1"
Ports [1, 1]
Position [425, 326, 455, 374]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer2"
Ports [1, 1]
Position [445, 61, 465, 109]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer3"
Ports [1, 1]
Position [595, 326, 625, 374]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 110; 620, 0]
Branch {
Points [20, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, 285]
DstBlock "Find Delay"
DstPort 1
}
}
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
Points [5, 0; 0, 5]
Branch {
DstBlock "Selector1"
DstPort 1
}
Branch {
Points [175, 0]
DstBlock "Divide"
DstPort 1
}
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband"
SrcPort 1
Points [0, -55; 10, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
Points [0, 195]
DstBlock "Find Delay"
DstPort 2
}
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -40]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Unbuffer2"
DstPort 1
}
Line {
SrcBlock "Unbuffer2"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
Points [25, 0; 0, -20]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Unbuffer1"
DstPort 1
}
Line {
SrcBlock "Unbuffer1"
SrcPort 1
DstBlock "Buffer3"
DstPort 1
}
Line {
SrcBlock "Buffer3"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Unbuffer3"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [5, 0; 0, 145; -550, 0]
Branch {
Points [-240, 0]
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Selector3"
DstPort 1
}
}
Line {
SrcBlock "Unbuffer3"
SrcPort 1
DstBlock "BPSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, -45; -885, 0]
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Find Delay"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -