📄 mimo.mdl
字号:
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [4, 1]
Position [1045, 1166, 1130, 1309]
Inputs "4"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [375, 646, 445, 694]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [45, 353, 125, 397]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "0.5"
seed "61"
Ts "1e-6/16/2"
frameBased on
sampPerFrame "32"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [325, 654, 360, 686]
NamePlacement "alternate"
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Value "0"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "1e-3/64"
framePeriod "1e-6"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "-inf"
Ts "-inf"
FramebasedOutput "-inf"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [940, 1431, 1030, 1529]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [780, 1451, 855, 1504]
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 on
numErr "1e6"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [520, 1477, 570, 1513]
NamePlacement "alternate"
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType From
Name "From1"
Position [20, 1386, 60, 1414]
CloseFcn "tagdialog Close"
GotoTag "H1"
}
Block {
BlockType From
Name "From2"
Position [675, 1386, 715, 1414]
CloseFcn "tagdialog Close"
GotoTag "TX"
}
Block {
BlockType From
Name "From3"
Position [20, 1476, 60, 1504]
CloseFcn "tagdialog Close"
GotoTag "R1"
}
Block {
BlockType Goto
Name "Goto"
Position [165, 475, 205, 505]
NamePlacement "alternate"
GotoTag "TX"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [1500, 685, 1540, 715]
NamePlacement "alternate"
GotoTag "H1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [1505, 865, 1545, 895]
NamePlacement "alternate"
GotoTag "R1"
TagVisibility "local"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [500, 398, 550, 442]
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation10"
Ports [4, 1]
Position [1025, 614, 1100, 686]
NumInputs "4"
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation11"
Ports [4, 1]
Position [1025, 724, 1100, 796]
NumInputs "4"
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation12"
Ports [4, 1]
Position [1045, 1054, 1120, 1126]
NumInputs "4"
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [510, 1053, 560, 1097]
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation3"
Ports [2, 1]
Position [510, 723, 560, 767]
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation4"
Ports [4, 1]
Position [1375, 803, 1455, 957]
NumInputs "4"
Mode "Multidimensional array"
ConcatenateDimension "2"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation5"
Ports [4, 1]
Position [1255, 623, 1335, 777]
NumInputs "4"
Mode "Multidimensional array"
ConcatenateDimension "2"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation6"
Ports [4, 1]
Position [385, 1443, 435, 1517]
NumInputs "4"
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation7"
Ports [2, 1]
Position [490, 73, 540, 117]
Mode "Multidimensional array"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation9"
Ports [4, 1]
Position [1005, 244, 1080, 316]
NumInputs "4"
Mode "Multidimensional array"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [610, 73, 690, 117]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "71"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [605, 398, 685, 442]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "75"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel10"
Ports [1, 1]
Position [605, 883, 685, 927]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "81"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel11"
Ports [1, 1]
Position [605, 968, 685, 1012]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "82"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel12"
Ports [1, 1]
Position [610, 1053, 690, 1097]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "83"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel13"
Ports [1, 1]
Position [610, 1133, 690, 1177]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Fd "100"
simTs "1e-6/5"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "84"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel14"
Ports [1, 1]
Position [610, 1213, 690, 1257]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -