📄 mqam_mimo_onere_twotr.mdl
字号:
Position [325, 101, 330, 139]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [180, 69, 185, 171]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [365, 102, 395, 138]
Input "Real and imag"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [230, 105, 290, 135]
FunctionName "MQAM_MRC_twoTR"
Parameters "BitRate"
}
Block {
BlockType Outport
Name "Out1"
Position [420, 113, 450, 127]
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "channel"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [645, 56, 690, 89]
BackgroundColor "yellow"
DropShadow on
InputSameDT off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [125, 44, 180, 86]
BackgroundColor "yellow"
DropShadow on
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "2"
seed "37"
Ts "1/(4*BitRate)"
frameBased on
sampPerFrame "4*BitRate"
orient off
}
Block {
BlockType Reference
Name "Rectangular QAM\nDemodulator\nBaseband"
Ports [1, 1]
Position [245, 331, 315, 369]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
SourceBlock "commdigbbndam2/Rectangular QAM\nDemodulator\nBa"
"seband"
SourceType "Rectangular QAM Demodulator Baseband"
M "16"
OutType "Bit"
Dec "Gray"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Rectangular QAM\nModulator\nBaseband"
Ports [1, 1]
Position [240, 43, 300, 87]
BackgroundColor "yellow"
DropShadow on
SourceBlock "commdigbbndam2/Rectangular QAM\nModulator\nBase"
"band"
SourceType "Rectangular QAM Modulator Baseband"
M "16"
InType "Bit"
Enc "Gray"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
numSamp "1"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [345, 171, 385, 209]
BackgroundColor "yellow"
DropShadow on
Elements "1 "
InputPortWidth "3"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [725, 175, 755, 205]
Orientation "down"
BackgroundColor "yellow"
DropShadow on
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [415, 174, 480, 206]
BackgroundColor "yellow"
DropShadow on
VariableName "BitErrorRate"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [475, 330, 515, 370]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
}
Block {
BlockType SubSystem
Name "channel and noise"
Ports [0, 2]
Position [535, 149, 590, 236]
BackgroundColor "yellow"
DropShadow on
TreatAsAtomicUnit off
System {
Name "channel and noise"
Location [-39, 442, 755, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [85, 80, 115, 110]
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [280, 47, 285, 143]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [320, 84, 350, 131]
Input "Real and imag"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [175, 80, 235, 110]
FunctionName "cornaka_noise"
Parameters "N,BitRate,m,Rou_gamma_Tx,omegap,sgma"
}
Block {
BlockType Outport
Name "channel"
Position [415, 58, 445, 72]
}
Block {
BlockType Outport
Name "noise"
Position [415, 103, 445, 117]
Port "2"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "channel"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [15, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "noise"
DstPort 1
}
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Frame Status\nConversion2"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion2"
SrcPort 1
DstBlock "Rectangular QAM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "MQAM_MRC"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "channel and noise"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [55, 0]
DstBlock "MQAM_MRC"
DstPort 1
}
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Rectangular QAM\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "Rectangular QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Rectangular QAM\nDemodulator\nBaseband"
SrcPort 1
Points [-20, 0; 0, -150]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "channel and noise"
SrcPort 2
Points [120, 0; 0, -55]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [75, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 150]
DstBlock "MQAM_MRC"
DstPort 2
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Product"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -