📄 slbb.mdl
字号:
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 [0, 0, 0, 0, 0]
Position [46, 280, 180, 312]
DropShadow on
ShowName off
OpenFcn "initbb"
ShowPortLabels off
MaskDisplay "disp('Variable Initialization')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
System {
Name "Button 7"
Location [-10, 380, 117, 533]
Open off
ToolBar off
StatusBar off
ScreenColor white
PaperOrientation landscape
PaperPositionMode auto
PaperType usletter
PaperUnits inches
}
}
Block {
BlockType Constant
Name "Constant"
Position [111, 85, 129, 105]
Orientation up
NamePlacement alternate
Value "1"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
}
Block {
BlockType "S-Function"
Name "Fuzzy Logic Controller"
Ports [1, 1, 0, 0, 0]
Position [245, 264, 300, 316]
Orientation left
FunctionName "sffis"
Parameters "fismatrix"
PortCounts "[]"
SFunctionModules "sfsup"
MaskType "FIS"
MaskDescription "FIS"
MaskHelp "Fuzzy Inference System"
MaskPromptString "FIS Matrix:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskInitialization "fismatrix = @1;"
MaskDisplay "plot(0, -0.3, 6, -0.3, 0, 1.2, 6, 1.2, [0 6], ["
"0 0], [1 2 3],[0 1 0],[2 3 4],[0 1 0],[3 4 5],[0 1 0])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
MaskValueString "fismatrix"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1, 0, 0, 0]
Position [330, 267, 375, 313]
Orientation left
ShowName off
Inputs "4"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate none
MaskIconUnits autoscale
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1, 0, 0, 0]
Position [380, 22, 410, 68]
ShowName off
Inputs "4"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [425, 79, 455, 106]
ShowName off
Inputs "2"
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [480, 82, 500, 108]
Floating off
Location [735, 177, 1015, 397]
Open off
Grid on
TickLabels on
ZoomMode on
TimeRange "10.000000"
YMin "-2.000000"
YMax "2.000000"
SaveToWorkspace off
SaveName "ScopeData"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [365, 128, 390, 152]
NamePlacement alternate
ShowName off
Inputs "-+"
}
Block {
BlockType Switch
Name "Switch"
Position [170, 44, 195, 76]
Threshold "0"
}
Block {
BlockType SignalGenerator
Name "Target Position"
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 Controller"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Animation"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic Controller"
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 + -