📄 oloop3t.mdl
字号:
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 [50, 266, 80, 294]
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 {
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 Clock
Name "Clock"
Position [450, 230, 470, 250]
FontName "Arial"
Location [30, 40, 140, 75]
}
Block {
BlockType Ground
Name "Ground_1"
Position [300, 325, 310, 335]
ShowName off
}
Block {
BlockType Ground
Name "Ground_2"
Position [225, 260, 235, 270]
ShowName off
}
Block {
BlockType Ground
Name "Ground_3"
Position [225, 275, 235, 285]
ShowName off
}
Block {
BlockType Ground
Name "Ground_4"
Position [225, 290, 235, 300]
ShowName off
}
Block {
BlockType Ground
Name "Ground_5"
Position [225, 385, 235, 395]
ShowName off
}
Block {
BlockType Ground
Name "Ground_6"
Position [225, 400, 235, 410]
ShowName off
}
Block {
BlockType StateSpace
Name "Linear aircraft\nmodel"
Position [375, 301, 450, 339]
BackgroundColor lightBlue
FontName "Arial"
A "Aac"
B "Bac"
C "Cac"
D "Dac"
X0 "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1, 0, 0, 0]
Position [325, 304, 330, 336]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "[4 2 6]"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1, 0, 0, 0]
Position [250, 245, 255, 300]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "4"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [250, 380, 255, 415]
BackgroundColor black
FontName "Arial"
ShowName off
Inputs "2"
}
Block {
BlockType RateLimiter
Name "Rate Limiter"
Position [115, 315, 140, 335]
FontName "Arial"
RisingSlewLimit "3*pi/180"
FallingSlewLimit "-3*pi/180"
}
Block {
BlockType RateLimiter
Name "Rate Limiter "
Position [115, 380, 140, 400]
FontName "Arial"
RisingSlewLimit "50"
FallingSlewLimit "-50"
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [515, 362, 535, 388]
BackgroundColor gray
FontName "Arial"
Floating off
Location [37, 30, 365, 426]
Open off
Grid on
TickLabels on
ZoomMode on
TimeRange "120.000000"
YMin "-50.000000"
YMax "50.000000"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step delta f"
Position [55, 315, 75, 335]
FontName "Arial"
Time "0.001"
Before "0"
After "3*pi/180"
}
Block {
BlockType Step
Name "Step n"
Position [55, 380, 75, 400]
FontName "Arial"
Time "1"
Before "0"
After "200"
}
Block {
BlockType Step
Name "Step pz"
Position [55, 425, 75, 445]
FontName "Arial"
Time "0.001"
Before "0"
After "2"
}
Block {
BlockType Terminator
Name "Terminator_16"
Position [205, 400, 215, 410]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator_17"
Position [205, 260, 215, 270]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator_18"
Position [205, 275, 215, 285]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator_19"
Position [205, 290, 215, 300]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator_20"
Position [205, 385, 215, 395]
ShowName off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [515, 231, 565, 249]
BackgroundColor yellow
FontName "Arial"
VariableName "t"
Buffer "1000"
Decimation "1"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace "
Position [515, 311, 565, 329]
BackgroundColor yellow
FontName "Arial"
VariableName "yout"
Buffer "1000"
Decimation "1"
SampleTime "0"
}
Line {
SrcBlock "Ground_6"
SrcPort 1
Points [-5, -5]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Ground_5"
SrcPort 1
Points [-5, -5]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Ground_4"
SrcPort 1
Points [-5, -5]
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "Ground_3"
SrcPort 1
Points [-5, -5]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Ground_2"
SrcPort 1
Points [-5, -5]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Block delta e"
SrcPort 1
Points [128, 0; 0, 60]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Step pz"
SrcPort 1
DstBlock " Rate Limiter"
DstPort 1
}
Line {
SrcBlock "Step n"
SrcPort 1
DstBlock "Rate Limiter "
DstPort 1
}
Line {
SrcBlock "Step delta f"
SrcPort 1
DstBlock "Rate Limiter"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Linear aircraft\nmodel"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "To Workspace "
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Linear aircraft\nmodel"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock " To Workspace "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -