📄 stbctwotxonerx_scheme3.mdl
字号:
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "STBCtwoTxoneRx_scheme3"
Location [8, 83, 1003, 744]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [695, 466, 770, 514]
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband2"
Ports [1, 1]
Position [140, 96, 205, 144]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [35, 98, 115, 142]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "1e-6/2"
frameBased on
sampPerFrame "2"
orient off
}
Block {
BlockType SubSystem
Name "Channel"
Ports [2, 1]
Position [740, 69, 865, 216]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Channel"
Location [43, 341, 965, 873]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 63, 65, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [35, 213, 65, 227]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [395, 124, 475, 166]
FontSize 10
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "10"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [505, 120, 555, 170]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "2"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [100, 45, 150, 95]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [105, 195, 155, 245]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [190, 48, 270, 92]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "120"
simTs "1e-6/2"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "73"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [190, 198, 265, 242]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "120"
simTs "1e-6/2"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "75"
}
Block {
BlockType Sum
Name "r"
Ports [2, 1]
Position [335, 104, 370, 186]
Inputs "2"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "r1r2*"
Position [605, 138, 635, 152]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "r"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
Points [25, 0; 0, 55]
DstBlock "r"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel1"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel1"
SrcPort 1
Points [30, 0; 0, -55]
DstBlock "r"
DstPort 2
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "r1r2*"
DstPort 1
}
Annotation {
Position [1025, 189]
}
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [255, 289, 340, 351]
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [150, 327, 225, 378]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "2"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "1e6"
maxBits "1e6"
}
Block {
BlockType SubSystem
Name "Estimation"
Ports [0, 1]
Position [295, 450, 395, 510]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Estimation"
Location [-88, 345, 924, 625]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband1"
Ports [1, 1]
Position [90, 81, 165, 129]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [25, 89, 60, 121]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
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'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "-inf"
Ts "-inf"
FramebasedOutput "-inf"
}
Block {
BlockType Gain
Name "Gain2"
Position [600, 70, 630, 100]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction3"
Ports [1, 1]
Position [560, 70, 585, 100]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction4"
Ports [1, 1]
Position [580, 170, 605, 200]
Operator "conj"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation3"
Ports [2, 1]
Position [695, 31, 750, 104]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation4"
Ports [2, 1]
Position [700, 166, 755, 239]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation5"
Ports [2, 1]
Position [795, 102, 850, 178]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel2"
Ports [1, 1]
Position [375, 28, 455, 72]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "120"
simTs "1e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "73"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel3"
Ports [1, 1]
Position [380, 133, 455, 177]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "120"
simTs "1e-6"
delayVec "[0]"
gainVecdB "[0]"
normGain on
Seed "75"
}
Block {
BlockType Reference
Name "Multiport\nSelector2"
Ports [1, 2]
Position [195, 83, 275, 127]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ 1,2 }"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Pseudoinverse"
Ports [1, 1]
Position [870, 110, 945, 170]
SourceBlock "dspinverses/Pseudoinverse"
SourceType "Pseudoinverse"
}
Block {
BlockType Outport
Name "invH"
Position [970, 133, 1000, 147]
IconDisplay "Port number"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "BPSK\nModulator\nBaseband1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "Multipath Rayleigh\nFading Channel2"
DstPort 1
}
Line {
SrcBlock "BPSK\nModulator\nBaseband1"
SrcPort 1
DstBlock "Multiport\nSelector2"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector2"
SrcPort 2
Points [25, 0; 0, 40]
DstBlock "Multipath Rayleigh\nFading Channel3"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel2"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -