📄 slbb.mdl
字号:
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_3"
Position [435, 240, 455, 260]
Port "3"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_4"
Position [435, 285, 455, 305]
Port "4"
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "x4"
DstPort 1
}
Line {
SrcBlock "x2"
SrcPort 1
Points [35, 0]
Branch {
Points [80, 0; 0, 70]
DstBlock "out_2"
DstPort 1
}
Branch {
Points [0, -25; -110, 0; 0, -25]
DstBlock "x1"
DstPort 1
}
}
Line {
SrcBlock "x1"
SrcPort 1
Points [55, 0]
Branch {
Points [0, 95]
DstBlock "Product"
DstPort 1
}
Branch {
Points [80, 0; 0, 75]
DstBlock "out_1"
DstPort 1
}
}
Line {
SrcBlock "x4^2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "sin(x3)"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-30, 0; 0, -45; 110, 0; 0, -30]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [-35, 0; 0, -55]
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "x2"
DstPort 1
}
Line {
SrcBlock "x4"
SrcPort 1
Points [85, 0]
Branch {
Points [0, -25]
Branch {
Points [-155, 0; 0, -25]
DstBlock "x3"
DstPort 1
}
Branch {
Points [0, -135]
DstBlock "x4^2"
DstPort 1
}
}
Branch {
Points [55, 0; 0, -75]
DstBlock "out_4"
DstPort 1
}
}
Line {
SrcBlock "x3"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -50]
DstBlock "sin(x3)"
DstPort 1
}
Branch {
Points [80, 0; 0, -70]
DstBlock "out_3"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Button 7"
Ports []
Position [46, 280, 180, 312]
DropShadow on
ShowName off
OpenFcn "initbb"
ShowPortLabels off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Variable Initialization')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Button 7"
Location [-10, 380, 117, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Constant
Name "Constant"
Position [111, 85, 129, 105]
Orientation "up"
NamePlacement "alternate"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Reference
Name "Fuzzy Logic\nController"
Ports [1, 1]
Position [245, 265, 305, 315]
Orientation "left"
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "fismatrix"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [330, 267, 375, 313]
Orientation "left"
ShowName off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1]
Position [380, 22, 410, 68]
ShowName off
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [425, 79, 455, 106]
ShowName off
Inputs "2"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [480, 82, 500, 108]
Location [576, 295, 856, 515]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10.000000"
YMin "-2"
YMax "2"
DataFormat "Array"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [365, 128, 390, 152]
NamePlacement "alternate"
ShowName off
Inputs "-+"
}
Block {
BlockType Switch
Name "Switch"
Position [170, 44, 195, 76]
}
Block {
BlockType SignalGenerator
Name "Target Position"
Ports [0, 1]
Position [45, 33, 90, 67]
WaveForm "square"
Amplitude "1.600000"
Frequency "0.500000"
Units "rad/sec"
}
Block {
BlockType Constant
Name "Target Position\n(Mouse-Driven)"
Position [127, 120, 153, 140]
Orientation "up"
NamePlacement "alternate"
Value "-1.6"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [145, 0]
Branch {
Points [0, 25]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Sum"
DstPort 1
}
}
Branch {
DstBlock "Mux1"
DstPort 4
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [30, 0; 0, 135]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Ball-Beam Dynamics"
SrcPort 2
Points [100, 0; 0, 125]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Ball-Beam Dynamics"
SrcPort 3
Points [20, 0]
Branch {
Points [70, 0; 0, 120]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [0, -135]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Ball-Beam Dynamics"
SrcPort 4
Points [80, 0; 0, 115]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Target Position\n(Mouse-Driven)"
SrcPort 1
Points [0, -45]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -20]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Target Position"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Ball-Beam Dynamics"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -45]
Branch {
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, -70]
DstBlock "Mux1"
DstPort 1
}
}
Branch {
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic\nController"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Animation"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic\nController"
SrcPort 1
Points [-25, 0; 0, -120]
Branch {
Points [0, -120]
DstBlock "Mux1"
DstPort 3
}
Branch {
DstBlock "Ball-Beam Dynamics"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -