📄 rsma.mdl
字号:
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-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 Terminator
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "RSma"
Location [371, 238, 955, 586]
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 "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [40, 58, 120, 102]
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "54321"
Ts "1"
frameBased on
sampPerFrame "15"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Binary Symmetric\nChannel"
Ports [1, 2]
Position [205, 173, 290, 217]
SourceBlock "commchan3/Binary Symmetric\nChannel"
SourceType "Binary Symmetric Channel"
ShowPortLabels on
P "errB"
s "2137"
E on
outDtype "double"
}
Block {
BlockType Reference
Name "Binary-Input\nRS Encoder"
Ports [1, 1]
Position [55, 173, 140, 217]
SourceBlock "commblkcod2/Binary-Input\nRS Encoder"
SourceType "Binary-Input RS Encoder"
ShowPortLabels on
n "7"
k "5"
specPrimPoly on
primPoly "[1 0 1 1]"
specGenPoly on
genPoly "rsgenpoly(7,5)"
outDType "double"
}
Block {
BlockType Reference
Name "Binary-Output\nRS Decoder"
Ports [1, 2]
Position [370, 163, 465, 207]
SourceBlock "commblkcod2/Binary-Output\nRS Decoder"
SourceType "Binary-Output RS Decoder"
ShowPortLabels on
n "7"
k "5"
specPrimPoly on
primPoly "[1 0 1 1]"
specGenPoly on
genPoly "rsgenpoly(7,5)"
showNumErr on
outDType "double"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [360, 76, 365, 114]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [480, 56, 565, 134]
Format "short_e"
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [195, 67, 270, 123]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "800"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [405, 76, 410, 114]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Terminator
Name "Terminator"
Position [500, 245, 520, 265]
NamePlacement "alternate"
}
Block {
BlockType Terminator
Name "Terminator1"
Position [355, 245, 375, 265]
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [285, 30, 345, 60]
Orientation "left"
NamePlacement "alternate"
VariableName "s"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
FixptAsFi on
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Binary-Output\nRS Decoder"
SrcPort 1
Points [30, 0; 0, -20; -335, 0; 0, -45]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Binary-Input\nRS Encoder"
SrcPort 1
DstBlock "Binary Symmetric\nChannel"
DstPort 1
}
Line {
SrcBlock "Binary Symmetric\nChannel"
SrcPort 1
DstBlock "Binary-Output\nRS Decoder"
DstPort 1
}
Line {
SrcBlock "Binary-Output\nRS Decoder"
SrcPort 2
Points [10, 0; 0, 60]
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, 75; -105, 0]
DstBlock "Binary-Input\nRS Encoder"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Binary Symmetric\nChannel"
SrcPort 2
Points [20, 0; 0, 50]
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -