📄 simulink1.mdl
字号:
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Abs1"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [495, 342, 525, 373]
}
Block {
BlockType Outport
Name "Out1"
Position [580, 353, 610, 367]
}
Block {
BlockType Outport
Name "Out2"
Position [420, 218, 450, 232]
Port "2"
}
Block {
BlockType Outport
Name "Out3"
Position [425, 463, 455, 477]
Port "3"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 5; 70, 0]
Branch {
Points [0, -50]
DstBlock "Subsystem4"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Subsystem6"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Subsystem5"
SrcPort 1
Points [15, 0; 0, 60]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Subsystem7"
SrcPort 1
Points [15, 0; 0, -30]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Subsystem4"
SrcPort 1
DstBlock "Saturation1"
DstPort 1
}
Line {
SrcBlock "Saturation1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Subsystem5"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, -65]
DstBlock "Out2"
DstPort 1
}
}
Line {
SrcBlock "Subsystem6"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Subsystem7"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Out3"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [1, 3]
Position [330, 384, 430, 426]
TreatAsAtomicUnit off
System {
Name "Subsystem3"
Location [2, 82, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [95, 223, 125, 237]
}
Block {
BlockType Saturate
Name "Saturation2"
Position [330, 280, 360, 310]
UpperLimit "2"
LowerLimit "0"
}
Block {
BlockType Saturate
Name "Saturation3"
Position [335, 180, 365, 210]
UpperLimit "2"
LowerLimit "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [245, 170, 275, 220]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [257, 450, 648, 659]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 93, 55, 107]
}
Block {
BlockType Abs
Name "Abs1"
Position [70, 35, 100, 65]
}
Block {
BlockType Constant
Name "Constant"
Position [35, 140, 55, 160]
Value "0"
}
Block {
BlockType Fcn
Name "Fcn"
Position [170, 35, 230, 65]
Expr "(x0-u)/sqrt(k1)"
}
Block {
BlockType From
Name "From1"
Position [15, 35, 45, 65]
CloseFcn "tagdialog Close"
GotoTag "C"
}
Block {
BlockType Gain
Name "Gain"
Position [120, 35, 150, 65]
Gain "-1"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [180, 85, 210, 115]
Operator "sqrt"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [270, 42, 300, 73]
}
Block {
BlockType Switch
Name "Switch"
Position [105, 85, 135, 115]
}
Block {
BlockType Outport
Name "Out1"
Position [325, 53, 355, 67]
InitialOutput "0"
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [40, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, -10]
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Abs1"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [435, 170, 465, 220]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [261, 553, 626, 715]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [115, 98, 145, 112]
}
Block {
BlockType Abs
Name "Abs1"
Position [60, 30, 90, 60]
}
Block {
BlockType Fcn
Name "Fcn1"
Position [155, 30, 215, 60]
Expr "k1/((x0-u)^2)"
}
Block {
BlockType From
Name "From"
Position [15, 30, 45, 60]
CloseFcn "tagdialog Close"
GotoTag "C"
}
Block {
BlockType Gain
Name "Gain"
Position [110, 30, 140, 60]
Gain "-1"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [180, 90, 210, 120]
Operator "square"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [250, 57, 280, 88]
}
Block {
BlockType Outport
Name "Out1"
Position [310, 68, 340, 82]
InitialOutput "0"
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [20, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [15, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Abs1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [245, 270, 275, 320]
TreatAsAtomicUnit off
System {
Name "Subsystem2"
Location [490, 429, 855, 636]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 118, 45, 132]
}
Block {
BlockType Abs
Name "Abs"
Position [150, 75, 180, 105]
}
Block {
BlockType Abs
Name "Abs1"
Position [95, 25, 125, 55]
}
Block {
BlockType Constant
Name "Constant"
Position [25, 70, 45, 90]
Value "0"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [160, 25, 220, 55]
Expr "(x0+u)/sqrt(k1)"
}
Block {
BlockType From
Name "From1"
Position [35, 25, 65, 55]
CloseFcn "tagdialog Close"
GotoTag "C"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [205, 75, 235, 105]
Operator "sqrt"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [255, 31, 285, 64]
}
Block {
BlockType Switch
Name "Switch"
Position [90, 75, 120, 105]
}
Block {
BlockType Outport
Name "Out1"
Position [305, 43, 335, 57]
InitialOutput "0"
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0; 0, -25]
Branch {
DstBlock "Switch"
DstPort 3
}
Branch {
Points [0, -10]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Abs1"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [1, 1]
Position [440, 270, 470, 320]
TreatAsAtomicUnit off
System {
Name "Subsystem3"
Location [505, 518, 887, 697]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFacto
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -