📄 tx2_rx1.mdl
字号:
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -165]
DstBlock "Product4"
DstPort 2
}
}
Line {
SrcBlock "Submatrix1"
SrcPort 1
Points [85, 0; 0, -75]
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 145]
DstBlock "Product3"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0; 0, -20]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Math\nFunction3"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [15, 0; 0, 10]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "In3"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Submatrix2"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Submatrix1"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [280, 0]
Branch {
Points [10, 0; 0, 10]
Branch {
Points [0, 105]
Branch {
Points [0, 0]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Math\nFunction3"
DstPort 1
}
}
Branch {
Points [90, 0]
DstBlock "Product6"
DstPort 2
}
}
Branch {
Points [0, -50]
DstBlock "Math\nFunction4"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction4"
SrcPort 1
DstBlock "Product6"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [40, 0; 0, 15]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Product6"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Math\nFunction5"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [35, 0; 0, -80]
DstBlock "Product5"
DstPort 2
}
Line {
SrcBlock "Math\nFunction5"
SrcPort 1
Points [5, 0; 0, 90]
Branch {
DstBlock "Product5"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Product7"
DstPort 1
}
}
Line {
SrcBlock "Product5"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [30, 0; 0, -45]
DstBlock "Product7"
DstPort 2
}
Line {
SrcBlock "Product7"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [500, 230, 580, 270]
ShowName off
SourceBlock "commchan3/AWGN\nChannel"
SourceType "AWGN 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"
seed "124"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "15"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "0.0001"
variance "2/power(10,SNR/10)"
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [690, 236, 765, 284]
NamePlacement "alternate"
ShowName off
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator 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 "BPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [690, 291, 765, 339]
NamePlacement "alternate"
ShowName off
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator 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 "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [135, 221, 210, 269]
ShowName off
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 "Bit data stream"
Ports [0, 1]
Position [15, 223, 95, 267]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
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 "435345"
Ts "1e-4"
frameBased on
sampPerFrame "2"
orient off
outDataType "double"
}
Block {
BlockType SubSystem
Name "Channel H11"
Ports [0, 1]
Position [310, 171, 370, 199]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Channel H11"
Location [2, 83, 1014, 686]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator"
Ports [0, 1]
Position [450, 60, 500, 130]
Orientation "down"
NamePlacement "alternate"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
m "0"
d "1/2"
s "41"
Ts "0.0002"
frameBased "on"
sampPerFrame "1"
orient "off"
outDataType "double"
}
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator1"
Ports [0, 1]
Position [525, 60, 575, 130]
Orientation "down"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
m "0"
d "1/2"
s "124"
Ts "0.0002"
frameBased "on"
sampPerFrame "1"
orient "off"
outDataType "double"
}
Block {
BlockType Goto
Name "Goto"
Position [630, 230, 670, 260]
GotoTag "H11"
TagVisibility "global"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [443, 300, 587, 340]
Orientation "down"
NamePlacement "alternate"
Mode "Multidimensional array"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [494, 155, 536, 205]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType Outport
Name "Out1"
Position [500, 430, 530, 445]
Orientation "down"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Gaussian Noise\nGenerator"
SrcPort 1
Points [30, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Gaussian Noise\nGenerator1"
SrcPort 1
Points [-25, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 35]
Branch {
Points [-35, 0]
DstBlock "Matrix\nConcatenation2"
DstPort 1
}
Branch {
Points [35, 0]
Branch {
DstBlock "Matrix\nConcatenation2"
DstPort 2
}
Branch {
DstBlock "Goto"
DstPort 1
}
}
}
Line {
SrcBlock "Matrix\nConcatenation2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Channel H12"
Ports [0, 1]
Position [315, 296, 370, 324]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Channel H12"
Location [2, 82, 1014, 685]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator"
Ports [0, 1]
Position [450, 60, 500, 130]
Orientation "down"
NamePlacement "alternate"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise 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"
m "0"
d "1/2"
s "102"
Ts "0.0002"
frameBased on
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator1"
Ports [0, 1]
Position [525, 60, 575, 130]
Orientation "down"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise 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"
m "0"
d "1/2"
s "89564"
Ts "0.0002"
frameBased on
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Goto
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -