📄 pida_fuzzy.mdl
字号:
Position [185, 68, 215, 82]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out3"
Position [185, 108, 215, 122]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 25]
Branch {
Points [0, 50]
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Integrator"
DstPort 1
}
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Out3"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [30, 0]
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [505, 24, 535, 56]
Floating off
Location [6, 53, 209, 211]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "30"
YMin "-4"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [265, 149, 295, 181]
Floating off
Location [6, 264, 209, 422]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "30"
YMin "-5000"
YMax "5000"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [20, 65, 50, 95]
WaveForm "square"
Amplitude "1"
Frequency "0.1"
Units "Hertz"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 70, 100, 90]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [285, 65, 305, 85]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [85, 15, 110, 35]
VariableName "t"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [490, 70, 515, 90]
VariableName "y"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [105, 140, 130, 160]
VariableName "in"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1\nof compensator"
Position [320, 55, 395, 95]
Numerator "[wn*wn]"
Denominator "[1 2*zeta*wn]"
AbsoluteTolerance "auto"
Realization "auto"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "To Workspace4"
DstPort 1
}
Branch {
Points [0, -25; 85, 0; 0, -25; 40, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID signals"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn1\nof compensator"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "PID signals"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "PID signals"
SrcPort 2
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "PID signals"
SrcPort 3
Points [10, 0]
Branch {
DstBlock "Mux1"
DstPort 4
}
Branch {
Points [0, 75]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 5; 5, 0]
Branch {
DstBlock "To Workspace1"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 50; -155, 0]
Branch {
Points [-205, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Sum2"
DstPort 2
}
}
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Transfer Fcn1\nof compensator"
DstPort 1
}
Annotation {
Position [423, 164]
Text "pida_fuzzy.mdl. Apr. 6, 2001\nChou, PenChen. A "
"PID-fuzzy Simulink Model\n***> run on matlab 6.0 ONLY"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -