📄 fuzzy_pendium.mdl
字号:
PortNumber 1
Name "x2=x1dot"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [345, 225, 375, 255]
Port {
PortNumber 1
Name "x1"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [110, 221, 155, 254]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [160, 156, 205, 189]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [200, 230, 220, 250]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "x2dot"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "x1"
Position [415, 233, 445, 247]
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "From1"
SrcPort 1
Points [15, 0; 0, 35]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, 15]
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, -5]
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "From"
SrcPort 1
Points [5, 0; 0, 30]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 25]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Goto4"
DstPort 1
}
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
Name "x2dot"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "x2=x1dot"
Labels [0, 0]
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [25, 0]
DstBlock "Integrator1"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Goto3"
DstPort 1
}
}
Line {
Name "x1"
Labels [0, 0]
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [5, 0]
DstBlock "x1"
DstPort 1
}
Branch {
Points [-5, 0; 0, -70]
DstBlock "Goto2"
DstPort 1
}
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "u"
Ports [1, 1]
Position [760, 180, 800, 240]
TreatAsAtomicUnit off
System {
Name "u"
Location [240, 465, 675, 640]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "us"
Position [285, 40, 315, 54]
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [185, 71, 190, 109]
BackgroundColor "black"
ShowName off
Outputs "2"
Port {
PortNumber 1
Name "k1"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "k2"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType From
Name "From"
Position [150, 26, 190, 54]
BackgroundColor "yellow"
CloseFcn "tagdialog Close"
GotoTag "x1"
}
Block {
BlockType From
Name "From1"
Position [25, 76, 65, 104]
BackgroundColor "yellow"
CloseFcn "tagdialog Close"
GotoTag "x1"
}
Block {
BlockType From
Name "From2"
Position [155, 121, 195, 149]
BackgroundColor "lightBlue"
CloseFcn "tagdialog Close"
GotoTag "x2"
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController"
Ports [1, 1]
Position [85, 64, 145, 116]
FontName "Arial"
FontSize 10
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
fis "fuzzy_pendium_controller"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [220, 46, 265, 79]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [220, 96, 265, 129]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [280, 80, 300, 100]
ShowName off
IconShape "round"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [325, 80, 345, 100]
ShowName off
IconShape "round"
Inputs "+-|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "u"
Position [380, 83, 410, 97]
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
Name "k1"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 1
Points [10, 0]
DstBlock "Product"
DstPort 2
}
Line {
Name "k2"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 2
Points [10, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "From"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "From2"
SrcPort 1
Points [0, -15]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "u"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "us"
SrcPort 1
Points [15, 0]
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock "plant"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "x1d"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [5, 0]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Mux"
DstPort 2
}
}
}
Line {
SrcBlock "g(x)"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Derivative1"
DstPort 1
}
Line {
SrcBlock "Derivative1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "F(x)"
SrcPort 1
Points [45, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Derivative2"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Goto1"
DstPort 1
}
}
Line {
SrcBlock "Derivative2"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Derivative3"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "From3"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Derivative3"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [30, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "From5"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [35, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "From6"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "u"
DstPort 1
}
Line {
SrcBlock "plant"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Annotation {
Position [26, 85]
}
Annotation {
Name "g=9.8;\nm=2;\nM=8;\na=0.1;\nl=0.5;\nbetha=cos(8"
"8);"
Position [41, 63]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -