📄 sim.mdl
字号:
Cell "GenerateSampleERTMain"
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.1.0"
TargetFcnLib "ansi_tfl_tmw.mat"
TargetLibSuffix ""
TargetPreCompLibLocation ""
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
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 "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Scope
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 "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
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 "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "sim"
Location [206, 91, 1006, 601]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [95, 297, 140, 323]
DisplayTime on
Decimation "1"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [565, 177, 585, 243]
ShowName off
Outputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [195, 181, 220, 239]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [615, 121, 620, 159]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [255, 192, 325, 228]
FunctionName "s"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [395, 190, 490, 230]
FunctionName "plant"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [625, 209, 655, 241]
Floating off
Location [6, 30, 806, 558]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.15"
YMax "0.325"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [665, 124, 695, 156]
Floating off
Location [6, 30, 806, 558]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave5"
Ports [0, 1]
Position [95, 180, 125, 210]
Frequency "2*pi"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [170, 298, 225, 322]
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [670, 79, 700, 101]
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [425, 134, 455, 156]
VariableName "u"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "S-Function1"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "To Workspace4"
DstPort 1
}
}
Line {
SrcBlock "S-Function1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 60; -360, 0; 0, -45]
DstBlock "Mux"
DstPort 2
}
Branch {
DstBlock "Demux1"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [10, 0]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Sine Wave5"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -80; 445, 0]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope5"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "To Workspace3"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -