📄 sim25.mdl
字号:
ShowName off
}
Block {
BlockType Switch
Name "Switch"
Position [460, 237, 505, 303]
BackgroundColor "[1.000000, 0.501961, 0.752941]"
Threshold "0.5"
}
Block {
BlockType Outport
Name "F_fr"
Position [580, 262, 610, 278]
BackgroundColor "[0.000000, 1.000000, 0.250980]"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Block {
BlockType Outport
Name "Stuck"
Position [580, 337, 610, 353]
BackgroundColor "[0.000000, 1.000000, 0.250980]"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Hit \nCrossing"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Labels [2, 0]
Points [0, 75]
DstBlock "Stuck"
DstPort 1
}
Branch {
DstBlock "Switch"
DstPort 2
}
}
Line {
Labels [0, 0]
SrcBlock "Product2"
SrcPort 1
Points [80, 0]
Branch {
DstBlock "Display5"
DstPort 1
}
Branch {
Points [0, -125]
DstBlock "Switch"
DstPort 3
}
}
Line {
SrcBlock "kinetic\nfriction"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "velocity"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "F_fr"
DstPort 1
}
Line {
SrcBlock "velocity_stateport"
SrcPort 1
DstBlock "Hit \nCrossing"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Product1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "force"
SrcPort 1
Points [-5, 0; 30, 0]
Branch {
Labels [1, 0]
Points [0, -45]
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Sign1"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Abs"
SrcPort 1
DstBlock "Min"
DstPort 2
}
Line {
SrcBlock "static\nfriction"
SrcPort 1
DstBlock "Min"
DstPort 1
}
Line {
SrcBlock "Min"
SrcPort 1
Points [15, 0; 0, 50]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Sign1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Annotation {
Name "Direct state access to\nbreak algebraic loo"
"p"
Position [133, 256]
}
}
}
Block {
BlockType InitialCondition
Name "IC"
Position [305, 201, 345, 239]
BackgroundColor "[1.000000, 0.000000, 0.501961]"
Value "150"
}
Block {
BlockType Logic
Name "Logic"
Ports [2, 1]
Position [590, 280, 640, 315]
Orientation "left"
BackgroundColor "[0.501961, 0.250980, 0.250980]"
Operator "OR"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [740, 144, 785, 206]
BackgroundColor "lightBlue"
Location [275, 264, 666, 529]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-3.5"
YMax "5.5"
DataFormat "Array"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [185, 145, 215, 175]
BackgroundColor "[1.000000, 0.501961, 0.501961]"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Constant
Name "X0"
Position [485, 189, 515, 211]
BackgroundColor "[1.000000, 0.000000, 0.501961]"
Value "-1.5"
}
Block {
BlockType Constant
Name "ff"
Position [175, 421, 225, 449]
BackgroundColor "[1.000000, 0.000000, 0.501961]"
ShowName off
Value "50"
}
Block {
BlockType Gain
Name "k"
Position [75, 140, 130, 180]
BackgroundColor "[1.000000, 0.501961, 0.752941]"
Gain "-225"
}
Block {
BlockType Integrator
Name "position"
Ports [2, 2]
Position [545, 163, 595, 212]
BackgroundColor "[0.501961, 0.000000, 1.000000]"
InitialConditionSource "external"
LimitOutput on
UpperSaturationLimit "5.5"
LowerSaturationLimit "-3.5"
ShowSaturationPort on
}
Block {
BlockType Constant
Name "sff"
Position [175, 456, 225, 484]
BackgroundColor "[1.000000, 0.000000, 0.501961]"
ShowName off
Value "75"
}
Block {
BlockType Integrator
Name "velocity"
Ports [3, 1, 0, 0, 1]
Position [410, 149, 465, 201]
BackgroundColor "[0.501961, 0.000000, 1.000000]"
NamePlacement "alternate"
ExternalReset "rising"
InitialConditionSource "external"
ShowStatePort on
}
Line {
SrcBlock "position"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -125]
Branch {
Points [-595, 0; 0, 110]
DstBlock "k"
DstPort 1
}
Branch {
DstBlock "Display1"
DstPort 1
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "IC"
DstPort 1
}
Line {
SrcBlock "X0"
SrcPort 1
DstBlock "position"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/m"
DstPort 1
}
Line {
SrcBlock "IC"
SrcPort 1
Points [15, 0; 0, -30]
DstBlock "velocity"
DstPort 3
}
Line {
SrcBlock "velocity"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "position"
DstPort 1
}
Branch {
Points [0, 110; -235, 0; 0, 80]
DstBlock "Friction Model"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Display5"
DstPort 1
}
}
Line {
SrcBlock "k"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 345]
Branch {
DstBlock "Friction Model"
DstPort 5
}
Branch {
Points [0, 65]
DstBlock "Display"
DstPort 1
}
}
}
Line {
SrcBlock "1/m"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "velocity"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Display6"
DstPort 1
}
}
Line {
SrcBlock "sff"
SrcPort 1
DstBlock "Friction Model"
DstPort 4
}
Line {
SrcBlock "ff"
SrcPort 1
DstBlock "Friction Model"
DstPort 3
}
Line {
SrcBlock "Friction Model"
SrcPort 2
Points [235, 0]
Branch {
DstBlock "Display2"
DstPort 1
}
Branch {
Points [0, -180]
DstBlock "Logic"
DstPort 2
}
}
Line {
SrcBlock "Logic"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Friction Model"
SrcPort 1
Points [15, 0]
Branch {
Labels [2, 0]
Points [0, -80; -255, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Display4"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Data Type Conversion1"
SrcPort 1
Points [0, 10]
Branch {
DstBlock "Logic"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "Display3"
DstPort 1
}
}
Line {
SrcBlock "velocity"
SrcPort state
Points [0, 44; -215, 0; 0, 150]
DstBlock "Friction Model"
DstPort 2
}
Line {
Labels [0, 0]
SrcBlock "position"
SrcPort 2
Points [105, 0]
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
Points [-125, 0; 0, -125]
DstBlock "velocity"
DstPort 2
}
Annotation {
Position [639, 218]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -