📄 t2r1stbc.mdl
字号:
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
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 Terminator
}
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 "T2R1STBC"
Location [2, 83, 1014, 722]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [550, 133, 585, 197]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [805, 516, 880, 564]
Orientation "left"
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [140, 141, 215, 189]
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 [15, 143, 95, 187]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "1e-6"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [245, 135, 275, 195]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "64"
V "0"
ic "0"
}
Block {
BlockType Constant
Name "Constant"
Position [295, 255, 325, 285]
VectorParams1D off
SampleTime "1e-6"
Port {
PortNumber 1
Name "h1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Constant
Name "Constant1"
Position [340, 280, 370, 310]
Value "0"
SampleTime "1e-6"
Port {
PortNumber 1
Name "h2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [80, 494, 175, 566]
Orientation "left"
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [80, 404, 175, 476]
Orientation "left"
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [240, 412, 315, 463]
Orientation "left"
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "128"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Find Delay"
Ports [2, 1]
Position [235, 508, 315, 552]
Orientation "left"
SourceBlock "commutil2/Find Delay"
SourceType "Find Delay"
ShowPortLabels on
corrLength "2000"
chgSigOP off
stopUpdate off
numConstDelay "3"
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [440, 74, 595, 106]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType Probe
Name "Probe1"
Ports [1, 1]
Position [320, 24, 475, 56]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 2]
Position [305, 133, 375, 197]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Alamouti\\nSTBC')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [60, 97, 911, 711]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 148, 70, 162]
Port "1"
IconDisplay "Port number"
LatchInput off
Port {
PortNumber 1
Name "x2 x1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Gain
Name "Gain"
Position [325, 245, 355, 275]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "-x2*"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Gain
Name "Gain1"
Position [540, 70, 570, 100]
Gain "1/sqrt(2)"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [490, 345, 520, 375]
Gain "1/sqrt(2)"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [265, 245, 295, 275]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [265, 355, 295, 385]
Operator "conj"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [445, 55, 495, 110]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
Port {
PortNumber 1
Name "x1\n-x2*"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [400, 330, 450, 385]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
Port {
PortNumber 1
Name "x2\nx1*"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [590, 214, 745, 246]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [130, 50, 180, 90]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "First"
RowStartIndex "1"
RowEndMode "Index"
RowEndIndex "32"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
Port {
PortNumber 1
Name "x1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Submatrix1"
Ports [1, 1]
Position [125, 240, 175, 280]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "33"
RowEndMode "Last"
RowEndIndex "32"
ColSpan "Range of columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
Port {
PortNumber 1
Name "x2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Terminator
Name "Terminator"
Position [775, 220, 795, 240]
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [610, 57, 640, 113]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer1"
Ports [1, 1]
Position [600, 332, 630, 388]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Outport
Name "Out1"
Position [715, 78, 745, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [720, 353, 750, 367]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "x2"
Labels [0, 0]
SrcBlock "Submatrix1"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Math\nFunction"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "x2 x1"
Labels [0, 0]
SrcBlock "In1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -85]
DstBlock "Submatrix"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Submatrix1"
DstPort 1
}
}
Line {
Name "x1"
Labels [0, 0]
SrcBlock "Submatrix"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Branch {
Points [0, 300]
DstBlock "Math\nFunction1"
DstPort 1
}
}
Line {
Name "-x2*"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
Points [30, 0; 0, -165]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
Name "x1\n-x2*"
Labels [0, 0]
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
Name "x2\nx1*"
Labels [0, 0]
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Unbuffer1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Gain1"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Gain2"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Unbuffer1"
DstPort 1
}
Branch {
Points [0, -130]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -