📄 c2nlsys.mdl
字号:
Model {
Name "c2nlsys"
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 "c2nlsys"
Location [145, 211, 632, 389]
Open on
ToolBar on
StatusBar on
ScreenColor white
PaperOrientation landscape
PaperPositionMode auto
PaperType usletter
PaperUnits inches
Block {
BlockType Inport
Name "Inport"
Position [10, 50, 30, 70]
FontName "Times New Roman"
FontSize 9
Port "1"
PortWidth "-1"
SampleTime "-1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [275, 124, 340, 146]
Orientation left
FontName "Times New Roman"
FontSize 9
Expr "u+u^3/6"
}
Block {
BlockType Gain
Name "Gain"
Position [330, 8, 395, 32]
Orientation left
FontName "Times New Roman"
FontSize 9
Gain "0.707"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [395, 46, 415, 84]
FontName "Times New Roman"
FontSize 9
ExternalReset none
InitialConditionSource internal
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Saturate
Name "Saturation"
Position [115, 46, 170, 84]
FontName "Times New Roman"
FontSize 9
UpperLimit "0.4"
LowerLimit "-0.4"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [350, 55, 370, 75]
FontName "Times New Roman"
FontSize 9
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1, 0, 0, 0]
Position [205, 60, 225, 80]
FontName "Times New Roman"
FontSize 9
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1, 0, 0, 0]
Position [70, 55, 90, 75]
FontName "Times New Roman"
FontSize 9
Inputs "+-"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [245, 50, 300, 90]
FontName "Times New Roman"
FontSize 9
Numerator "[1 1]"
Denominator "[1 4 3]"
}
Block {
BlockType Outport
Name "Outport"
Position [450, 55, 470, 75]
FontName "Times New Roman"
FontSize 9
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-5, 0; 0, 40]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-80, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Outport"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 105; -370, 0; 0, -100]
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Inport"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -