📄 simulink1.mdl
字号:
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [1, 1]
Position [385, 174, 435, 216]
TreatAsAtomicUnit off
System {
Name "Subsystem2"
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 [170, 328, 200, 342]
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 4]
Position [235, 281, 240, 384]
BackgroundColor "black"
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [635, 322, 665, 393]
ShowName off
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 3]
Position [330, 174, 430, 216]
TreatAsAtomicUnit off
System {
Name "Subsystem1"
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 "A"
}
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 "A"
}
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 "A"
}
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, 870, 680]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [85, 108, 115, 122]
}
Block {
BlockType Abs
Name "Abs1"
Position [80, 30, 110, 60]
}
Block {
BlockType Fcn
Name "Fcn3"
Position [130, 30, 190, 60]
Expr "k1/((x0+u)^2)"
}
Block {
BlockType From
Name "From"
Position [15, 30, 45, 60]
CloseFcn "tagdialog Close"
GotoTag "A"
}
Block {
BlockType Gain
Name "Gain"
Position [280, 65, 310, 95]
Gain "-1"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [150, 100, 180, 130]
Operator "square"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [225, 62, 255, 93]
}
Block {
BlockType Outport
Name "Out1"
Position [330, 73, 360, 87]
InitialOutput "0"
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 25]
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 "Sum1"
Ports [2, 1]
Position [515, 212, 545, 243]
}
Block {
BlockType Outport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -