📄 myplant.mdl
字号:
Model {
Name "myplant"
Version 2.20
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
StartTime "0.0"
StopTime "999999"
Solver ode45
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep "10"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption RefineOutputTimes
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg warning
MinStepSizeMsg warning
UnconnectedInputMsg warning
UnconnectedOutputMsg warning
UnconnectedLineMsg warning
ConsistencyChecking off
ZeroCross on
SimulationMode normal
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWPlaceOutputsASAP off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
BlockDefaults {
Orientation right
ForegroundColor black
BackgroundColor white
DropShadow off
NamePlacement normal
FontName "Helvetica"
FontSize 10
FontWeight normal
FontAngle normal
ShowName 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 "myplant"
Location [189, 141, 597, 306]
Open on
ToolBar on
StatusBar on
ScreenColor white
PaperOrientation landscape
PaperPositionMode auto
PaperType usletter
PaperUnits inches
Block {
BlockType Inport
Name "Input"
Position [60, 20, 80, 40]
FontName "Times New Roman"
FontSize 11
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Gain
Name "Gain"
Position [210, 24, 250, 46]
FontName "Times New Roman"
FontSize 11
Gain "0.3"
}
Block {
BlockType Saturate
Name "Saturation"
Position [165, 23, 195, 47]
FontName "Times New Roman"
FontSize 11
UpperLimit "0.5"
LowerLimit "-0.8"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [115, 25, 135, 45]
FontName "Times New Roman"
FontSize 11
Inputs "+-"
}
Block {
BlockType SubSystem
Name "To CtrlLAB"
Ports [0, 0, 0, 0, 0]
Position [25, 85, 85, 111]
OpenFcn "ProcSim"
FontName "Times New Roman"
FontSize 11
ShowPortLabels off
MaskDisplay "disp('Return')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "To CtrlLAB"
Location [100, 100, 600, 400]
Open off
ToolBar off
StatusBar off
ScreenColor white
PaperOrientation landscape
PaperPositionMode auto
PaperType usletter
PaperUnits inches
}
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [265, 15, 325, 55]
FontName "Times New Roman"
FontSize 11
Numerator "[5 4]"
Denominator "[1 4 3 0]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [200, 87, 235, 123]
Orientation left
FontName "Times New Roman"
FontSize 11
Numerator "[5]"
Denominator "[1 5]"
}
Block {
BlockType Outport
Name "Output"
Position [360, 25, 380, 45]
FontName "Times New Roman"
FontSize 11
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Output"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Transfer Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
Points [-95, 0]
DstBlock "Sum"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -