📄 mqam_cornaka_threetr.mdl
字号:
Points [15, 0; 0, -25]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [30, 0; 0, -5]
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
Points [5, 0]
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 [665, 141, 710, 174]
BackgroundColor "yellow"
DropShadow on
InputSameDT off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [145, 129, 200, 171]
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 [265, 416, 335, 454]
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 [260, 128, 320, 172]
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 [365, 256, 405, 294]
BackgroundColor "yellow"
DropShadow on
Elements "1 "
InputPortWidth "3"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [745, 260, 775, 290]
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 [435, 259, 500, 291]
BackgroundColor "yellow"
DropShadow on
VariableName "BitErrorRate"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [495, 415, 535, 455]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
}
Block {
BlockType SubSystem
Name "channel and noise"
Ports [0, 2]
Position [555, 234, 610, 321]
BackgroundColor "yellow"
DropShadow on
TreatAsAtomicUnit off
System {
Name "channel and noise"
Location [249, 253, 747, 553]
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 [315, 84, 345, 131]
Input "Real and imag"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [175, 80, 235, 110]
FunctionName "cornaka_noise_threeTR"
Parameters "L,N,BitRate,m,Rou_gamma_Tx,Rou_gamma_Rx,ome"
"gap,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 [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "noise"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "vector spread"
Ports [1, 1]
Position [520, 126, 605, 174]
BackgroundColor "yellow"
DropShadow on
TreatAsAtomicUnit off
System {
Name "vector spread"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [165, 93, 195, 122]
Output "Real and imag"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [365, 98, 395, 127]
Input "Real and imag"
}
Block {
BlockType "S-Function"
Name "matrix enlarge"
Ports [1, 1]
Position [250, 56, 295, 94]
FunctionName "repmat_function"
Parameters "L,BitRate"
}
Block {
BlockType "S-Function"
Name "matrix enlarge1"
Ports [1, 1]
Position [250, 146, 295, 184]
FunctionName "repmat_function"
Parameters "L,BitRate"
}
Block {
BlockType Outport
Name "Out1"
Position [450, 103, 480, 117]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [15, 0; 0, -25]
DstBlock "matrix enlarge"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [15, 0; 0, 50]
DstBlock "matrix enlarge1"
DstPort 1
}
Line {
SrcBlock "matrix enlarge"
SrcPort 1
Points [25, 0; 0, 30]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "matrix enlarge1"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [15, 0; 0, -5]
DstBlock "Out1"
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 "Frame Status\nConversion"
SrcPort 1
DstBlock "vector spread"
DstPort 1
}
Line {
SrcBlock "MQAM_MRC"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "vector spread"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "channel and noise"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [60, 0; 0, 170]
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
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -