📄 oloop3t.mdl
字号:
Model {
Name "oloop3t"
Version 2.09
SimParamPage Solver
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
PaperOrientation landscape
PaperType usletter
PaperUnits inches
StartTime "0.0"
StopTime "120"
Solver ode45
RelTol "1e-7"
AbsTol "1e-7"
Refine "1"
MaxStep "1"
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
RTWRetainRTWFile off
RTWTemplateMakefile "grt_vc.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 "oloop3t"
Location [4, 42, 579, 513]
Open on
ScreenColor white
Block {
BlockType SubSystem
Name "OLOOP3\n(The final system)"
Ports [0, 0, 0, 0, 0]
Position [25, 340, 80, 390]
ForegroundColor red
FontName "Arial"
OpenFcn "oloop3"
ShowPortLabels off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "OLOOP3\n(The final system)"
Location [19, 357, 179, 467]
Open off
ScreenColor white
}
}
Block {
BlockType SubSystem
Name "OLOOP3a"
Ports [0, 0, 0, 0, 0]
Position [25, 105, 80, 135]
FontName "Arial"
ShowPortLabels off
System {
Name "OLOOP3a"
Location [4, 42, 485, 332]
Open off
ScreenColor white
Block {
BlockType StateSpace
Name "Linear aircraft\nmodel"
Position [205, 165, 280, 205]
BackgroundColor lightBlue
FontName "Arial"
A "Aac"
B "Bac"
C "Cac"
D "Dac"
X0 "0"
}
Line {
Points [165, 185]
DstBlock "Linear aircraft\nmodel"
DstPort 1
}
Line {
SrcBlock "Linear aircraft\nmodel"
SrcPort 1
Points [40, 0]
}
Annotation {
Position [187, 57]
VerticalAlignment top
FontName "Arial"
FontSize 11
Text "Step 2: take block State-space block "
"from Simulink library 'linear'"
}
Annotation {
Position [227, 77]
VerticalAlignment top
FontName "Arial"
FontSize 11
Text "Step 3: specify Aac, Bac, Cac, and Dac "
"to be state matrices of the linear model "
"\n(double-click the State-space block "
"to do so) "
}
Annotation {
Position [104, 37]
VerticalAlignment top
FontName "Arial"
FontSize 11
Text " Step 1: open new system "
}
Annotation {
Position [101, 7]
VerticalAlignment top
ForegroundColor blue
FontName "Times New Roman"
FontSize 14
FontWeight bold
Text "Construction of OLOOP3."
}
}
}
Block {
BlockType SubSystem
Name "OLOOP3b"
Ports [0, 0, 0, 0, 0]
Position [25, 150, 80, 180]
FontName "Arial"
ShowPortLabels off
System {
Name "OLOOP3b"
Location [4, 42, 508, 460]
Open off
ScreenColor white
Block {
BlockType RateLimiter
Name " Rate Limiter"
Position [110, 365, 135, 385]
FontName "Arial"
RisingSlewLimit "1.0"
FallingSlewLimit "-1.0"
}
Block {
BlockType SubSystem
Name "Block delta a"
Ports [0, 1, 0, 0, 0]
Position [35, 161, 65, 189]
FontName "Arial"
ShowPortLabels off
MaskType "Block Fcn"
MaskDescription "Block Function"
MaskHelp "This block implements a block signal.\\nDefi"
"ne the initial (=final) value, the\\namplitu"
"de of the block (positive\\n= upwards, "
"negative=downwards),\\nthe start time, "
"and the stop time (must\\nbe smaller "
"than the start time)."
MaskPromptString "Initial value (=final value):|Amplitude "
"of block (+ = step up, - = step down):|Start"
" time of block:|Stop time of block:"
MaskStyleString "edit,edit,edit,edit"
MaskInitialization "yinit=@1; yblock=@2; tstart=@3; tstop=@4;"
MaskDisplay "plot(0,0,100,100,[100,60,60,20,20,0],[50,50,"
"89,89,50,50])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "0|3*pi/180|0|2"
System {
Name "Block delta a"
Location [4, 60, 241, 187]
Open off
ScreenColor white
Block {
BlockType Step
Name "End block"
Position [40, 45, 60, 65]
FontName "Arial"
FontSize 9
Time "tstop"
Before "0"
After "-yblock"
}
Block {
BlockType Constant
Name "Initial value"
Position [40, 85, 80, 105]
FontName "Arial"
FontSize 9
Value "yinit"
}
Block {
BlockType Step
Name "Start block"
Position [40, 5, 60, 25]
FontName "Arial"
FontSize 9
Time "tstart"
Before "0"
After "yblock"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1, 0, 0, 0]
Position [115, 36, 130, 74]
FontName "Arial"
FontSize 9
ShowName off
Inputs "+++"
}
Block {
BlockType Outport
Name "block"
Position [165, 45, 185, 65]
DropShadow on
FontName "Arial"
FontSize 9
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "End block"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Start block"
SrcPort 1
Points [30, 0; 0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Initial value"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "block"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Block delta e"
Ports [0, 1, 0, 0, 0]
Position [35, 116, 65, 144]
FontName "Arial"
ShowPortLabels off
MaskType "Block Fcn"
MaskDescription "Block Function"
MaskHelp "This block implements a block signal.\\nDefi"
"ne the initial (=final) value, the\\namplitu"
"de of the block (positive\\n= upwards, "
"negative=downwards),\\nthe start time, "
"and the stop time (must\\nbe smaller "
"than the start time)."
MaskPromptString "Initial value (=final value):|Amplitude "
"of block (+ = step up, - = step down):|Start"
" time of block:|Stop time of block:"
MaskStyleString "edit,edit,edit,edit"
MaskInitialization "yinit=@1; yblock=@2; tstart=@3; tstop=@4;"
MaskDisplay "plot(0,0,100,100,[100,60,60,20,20,0],[50,50,"
"89,89,50,50])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "0|3*pi/180|0|2"
System {
Name "Block delta e"
Location [4, 60, 241, 187]
Open off
ScreenColor white
Block {
BlockType Step
Name "End block"
Position [40, 45, 60, 65]
FontName "Arial"
FontSize 9
Time "tstop"
Before "0"
After "-yblock"
}
Block {
BlockType Constant
Name "Initial value"
Position [40, 85, 80, 105]
FontName "Arial"
FontSize 9
Value "yinit"
}
Block {
BlockType Step
Name "Start block"
Position [40, 5, 60, 25]
FontName "Arial"
FontSize 9
Time "tstart"
Before "0"
After "yblock"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1, 0, 0, 0]
Position [115, 36, 130, 74]
FontName "Arial"
FontSize 9
ShowName off
Inputs "+++"
}
Block {
BlockType Outport
Name "block"
Position [165, 45, 185, 65]
DropShadow on
FontName "Arial"
FontSize 9
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "block"
DstPort 1
}
Line {
SrcBlock "Initial value"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Start block"
SrcPort 1
Points [30, 0; 0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "End block"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Block delta r"
Ports [0, 1, 0, 0, 0]
Position [35, 206, 65, 234]
FontName "Arial"
ShowPortLabels off
MaskType "Block Fcn"
MaskDescription "Block Function"
MaskHelp "This block implements a block signal.\\nDefi"
"ne the initial (=final) value, the\\namplitu"
"de of the block (positive\\n= upwards, "
"negative=downwards),\\nthe start time, "
"and the stop time (must\\nbe smaller "
"than the start time)."
MaskPromptString "Initial value (=final value):|Amplitude "
"of block (+ = step up, - = step down):|Start"
" time of block:|Stop time of block:"
MaskStyleString "edit,edit,edit,edit"
MaskInitialization "yinit=@1; yblock=@2; tstart=@3; tstop=@4;"
MaskDisplay "plot(0,0,100,100,[100,60,60,20,20,0],[50,50,"
"89,89,50,50])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "0|3*pi/180|0|2"
System {
Name "Block delta r"
Location [4, 60, 241, 187]
Open off
ScreenColor white
Block {
BlockType Step
Name "End block"
Position [40, 45, 60, 65]
FontName "Arial"
FontSize 9
Time "tstop"
Before "0"
After "-yblock"
}
Block {
BlockType Constant
Name "Initial value"
Position [40, 85, 80, 105]
FontName "Arial"
FontSize 9
Value "yinit"
}
Block {
BlockType Step
Name "Start block"
Position [40, 5, 60, 25]
FontName "Arial"
FontSize 9
Time "tstart"
Before "0"
After "yblock"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1, 0, 0, 0]
Position [115, 36, 130, 74]
FontName "Arial"
FontSize 9
ShowName off
Inputs "+++"
}
Block {
BlockType Outport
Name "block"
Position [165, 45, 185, 65]
DropShadow on
FontName "Arial"
FontSize 9
Port "1"
OutputWhenDisabled held
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "block"
DstPort 1
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -