📄 systems.mdl
字号:
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType ForIterator
ResetStates "held"
IterationSource "internal"
IterationLimit "5"
ExternalIncrement off
ShowIterationPort on
IndexMode "One-based"
IterationVariableDataType "int32"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
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 Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType MultiPortSwitch
Inputs "4"
zeroidx off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Signum
ZeroCross on
SampleTime "-1"
}
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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Width
OutputDataTypeScalingMode "Choose intrinsic data type"
DataType "double"
}
}
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 "systems"
Location [2, 70, 1022, 718]
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 "A-Law\nCompressor"
Ports [1, 1]
Position [230, 103, 310, 147]
SourceBlock "commsrccod2/A-Law\nCompressor"
SourceType "A-Law Compressor"
ShowPortLabels on
A "87.6"
V "1"
}
Block {
BlockType Reference
Name "A-Law\nExpander"
Ports [1, 1]
Position [650, 103, 730, 147]
SourceBlock "commsrccod2/A-Law\nExpander"
SourceType "A-Law Expander"
ShowPortLabels on
A "87.6"
V "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [445, 104, 525, 146]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Signal to noise ratio (Es/No)"
EbNodB "10"
EsNodB "10"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Differential Decoder"
Ports [1, 1]
Position [755, 102, 835, 148]
SourceBlock "commsrccod2/Differential\nDecoder"
SourceType "Differential Decoder"
ShowPortLabels on
InitCond "0"
}
Block {
BlockType Reference
Name "Differential Encoder"
Ports [1, 1]
Position [125, 103, 205, 147]
SourceBlock "commsrccod2/Differential\nEncoder"
SourceType "Differential Encoder"
ShowPortLabels on
InitCond "0"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [440, 180, 530, 210]
Format "long"
Decimation "5"
SampleTime "50"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [555, 230, 645, 260]
Decimation "1"
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace"
Position [30, 113, 95, 137]
VariableName "simin"
SampleTime "1"
}
Block {
BlockType Reference
Name "M-FSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [555, 101, 630, 149]
SourceBlock "commdigbbndfm2/M-FSK\nDemodulator\nBaseband"
SourceType "M-FSK Demodulator Baseband"
M "8"
OutType "Integer"
Dec "Binary"
freqSep "6"
numSamp "1"
}
Block {
BlockType Reference
Name "M-FSK\nModulator\nBaseband"
Ports [1, 1]
Position [335, 100, 410, 150]
SourceBlock "commdigbbndfm2/M-FSK\nModulator\nBaseband"
SourceType "M-FSK Modulator Baseband"
M "8"
InType "Integer"
Enc "Binary"
freqSep "6"
phaseType "Continuous"
numSamp "1"
}
Block {
BlockType Scope
Name "Scope"
Ports [6]
Position [925, 221, 955, 254]
Location [262, 366, 586, 700]
Open off
NumInputPorts "6"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5~-5~-5"
YMax "5~5~5~5~5~5"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "M-FSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Display1"
DstPort 1
}
}
Line {
SrcBlock "M-FSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
DstBlock "Display"
DstPort 1
}
}
Line {
SrcBlock "From\nWorkspace"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Differential Encoder"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Differential Encoder"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "A-Law\nCompressor"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "A-Law\nCompressor"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "M-FSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "M-FSK\nDemodulator\nBaseband"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "A-Law\nExpander"
DstPort 1
}
Branch {
Points [0, 115]
DstBlock "Scope"
DstPort 4
}
}
Line {
SrcBlock "A-Law\nExpander"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Differential Decoder"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Scope"
DstPort 5
}
}
Line {
SrcBlock "Differential Decoder"
SrcPort 1
Points [65, 0; 0, 125]
DstBlock "Scope"
DstPort 6
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -