📄 stbc.mdl
字号:
DstPort 2
}
Branch {
Points [0, -55]
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Add2"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Matrix Multiply2"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0; 0, 25]
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
Line {
Labels [2, 0]
SrcBlock "Math\nFunction5"
SrcPort 1
Points [20, 0; 0, -30]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Matrix\nConcatenate5"
DstPort 1
}
Branch {
Points [0, 165]
Branch {
DstBlock "Math\nFunction3"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Math\nFunction"
DstPort 1
}
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [0, 90]
DstBlock "Matrix\nConcatenate3"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [15, 0]
Branch {
Points [65, 0]
Branch {
DstBlock "Math\nFunction4"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Matrix\nConcatenate5"
DstPort 2
}
}
Branch {
Points [0, 245]
DstBlock "Math\nFunction5"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "p1"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "p2"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
DstBlock "p3"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "p4"
DstPort 1
}
}
}
}
Line {
SrcBlock "Transpose2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "STBCencoder"
Ports [1, 2]
Position [350, 178, 415, 222]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "STBCencoder"
Location [2, 82, 1270, 753]
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 Inport
Name "In1"
Position [110, 113, 140, 127]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [315, 35, 345, 65]
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Gain
Name "Gain"
Position [490, 240, 520, 270]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [500, 190, 530, 220]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [385, 105, 415, 135]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [385, 240, 415, 270]
Operator "conj"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate"
Ports [4, 1]
Position [605, 36, 660, 124]
NumInputs "4"
Mode "Vertical matrix concatenation"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate1"
Ports [4, 1]
Position [615, 242, 670, 328]
NumInputs "4"
Mode "Vertical matrix concatenation"
}
Block {
BlockType Reference
Name "c1"
Ports [1, 1]
Position [225, 98, 305, 142]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[1 0].'"
}
Block {
BlockType Reference
Name "c2"
Ports [1, 1]
Position [225, 233, 305, 277]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[0 1].'"
}
Block {
BlockType Outport
Name "Out1"
Position [760, 73, 790, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [760, 278, 790, 292]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "c1"
DstPort 1
}
Branch {
Points [0, 135]
DstBlock "c2"
DstPort 1
}
}
Line {
SrcBlock "c1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Math\nFunction"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Matrix\nConcatenate"
DstPort 3
}
}
Line {
SrcBlock "c2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Math\nFunction1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Matrix\nConcatenate1"
DstPort 3
}
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, -145]
DstBlock "Matrix\nConcatenate"
DstPort 4
}
Line {
SrcBlock "Matrix\nConcatenate"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [155, 0; 0, 195]
DstBlock "Matrix\nConcatenate1"
DstPort 4
}
Line {
SrcBlock "Matrix\nConcatenate1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [15, 0; 0, 70]
DstBlock "Matrix\nConcatenate1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [90, 0]
Branch {
DstBlock "Matrix\nConcatenate"
DstPort 1
}
Branch {
Points [0, 20]
Branch {
Points [115, 0]
Branch {
DstBlock "Matrix\nConcatenate"
DstPort 2
}
Branch {
Points [0, 185]
DstBlock "Matrix\nConcatenate1"
DstPort 1
}
}
Branch {
Points [0, 135]
DstBlock "Gain1"
DstPort 1
}
}
}
}
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "STBCencoder"
DstPort 1
}
Line {
SrcBlock "STBCencoder"
SrcPort 1
Points [35, 0; 0, -60]
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "STBCencoder"
SrcPort 2
Points [35, 0; 0, 50]
DstBlock "Multipath Rayleigh\nFading Channel1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [0, 40]
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 195; 350, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
Points [20, 0; 0, 60]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel1"
SrcPort 1
Points [20, 0; 0, -55]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "AWGN\nChannel1"
DstPort 1
}
Branch {
Points [0, -130]
DstBlock "MSE"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "STBCdecoder"
DstPort 1
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband"
SrcPort 1
Points [15, 0; 0, 185; -570, 0]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "BPSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "STBCdecoder"
SrcPort 2
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "STBCdecoder"
SrcPort 1
Points [15, 0; 0, -100]
DstBlock "MSE"
DstPort 2
}
Line {
SrcBlock "MSE"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
}
}
MatData {
NumRecords 3
DataRecord {
Tag DataTag2
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 365A;@"
}
DataRecord {
Tag DataTag1
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 365A;@"
}
DataRecord {
Tag DataTag0
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
"/ 0 0 #P $)04TM$96UO9'5L871O<@ "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -