📄 doc_softdecision.mdl
字号:
MaskValueString "|none|none|on||Info|Info|Center|0.5|doc_softdec"
"ision|20||||||||||||||||||||"
MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
System {
Name "Model Info"
Location [156, 465, 418, 616]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EmptySubsystem"
Ports []
Position [115, 50, 145, 80]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "EmptySubsystem"
Location [146, 180, 902, 673]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [380, 293, 460, 357]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Soft-Output\\nBPSK\\nDemodulator')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [206, 338, 958, 501]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 68, 60, 82]
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Check for zeros"
Ports [1, 1]
Position [265, 55, 355, 95]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Check for zeros')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Check for zeros"
Location [440, 448, 710, 604]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [50, 28, 80, 42]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant1"
Position [90, 105, 110, 125]
Orientation "up"
ShowName off
Value "0"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [115, 62, 145, 93]
ShowName off
Operator "=="
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [160, 25, 180, 45]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "Out1"
Position [205, 28, 235, 42]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
}
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 1]
Position [85, 52, 165, 98]
Output "Real"
}
Block {
BlockType DataTypeConversion
Name "Data Type\nConversion"
Position [605, 56, 660, 84]
}
Block {
BlockType Gain
Name "Gain"
Position [445, 55, 475, 85]
Gain "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [380, 50, 420, 85]
Inputs "*/"
}
Block {
BlockType Reference
Name "Standard\nDeviation"
Ports [1, 1]
Position [190, 55, 245, 95]
SourceBlock "dspstat3/Standard\nDeviation"
SourceType "Standard Deviation"
run on
reset_popup "None"
}
Block {
BlockType Reference
Name "Uniform\nEncoder"
Ports [1, 1]
Position [505, 49, 575, 91]
SourceBlock "dspquant2/Uniform\nEncoder"
SourceType "Uniform Encoder"
peak "2"
bits "3"
otype "Unsigned integer"
}
Block {
BlockType Outport
Name "Out1"
Position [685, 63, 715, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Check for zeros"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Standard\nDeviation"
SrcPort 1
DstBlock "Check for zeros"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Standard\nDeviation"
DstPort 1
}
Branch {
Points [0, -35; 190, 0]
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Uniform\nEncoder"
SrcPort 1
DstBlock "Data Type\nConversion"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Uniform\nEncoder"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Data Type\nConversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [280, 170, 340, 200]
VariableName "BER_Data"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [150, 299, 240, 351]
Orientation "left"
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(3, [1 5],7)"
dectype "Soft Decision"
nsdecb "3"
tbdepth "48"
opmode "Continuous"
reset off
outDataType "double"
}
Line {
SrcBlock "Convolutional \nEncoder"
SrcPort 1
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
Points [100, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Bernoulli Random\nBinary Generator"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Convolutional \nEncoder"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Error Rate Calculation"
DstPort 1
}
}
Line {
SrcBlock "Error Rate Calculation"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 30]
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Viterbi Decoder"
SrcPort 1
Points [-20, 0; 0, -90]
DstBlock "Error Rate Calculation"
DstPort 2
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 80]
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Viterbi Decoder"
DstPort 1
}
Annotation {
Name "Soft-Decision Decoding"
Position [120, 33]
ForegroundColor "blue"
DropShadow on
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 16
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -