📄 ex38s2.mdl
字号:
}
Block {
BlockType Outport
Name "duk"
Position [365, 48, 395, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Saturation1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0]
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "ek"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "duk"
DstPort 1
}
Line {
SrcBlock "dek"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Saturation1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [465, 31, 470, 69]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [465, 164, 495, 196]
Floating off
Location [6, 59, 238, 214]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "150"
YMin "-0.5"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [130, 32, 150, 63]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [330, 97, 350, 128]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [165, 114, 185, 136]
VariableName "t"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [465, 119, 485, 141]
VariableName "Y"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [380, 32, 440, 68]
Numerator "[2]"
Denominator "[1 3 2]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.01"
Position [325, 145, 360, 185]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold7"
Position [110, 110, 140, 140]
SampleTime "0.01"
}
Block {
BlockType Outport
Name "Out1"
Position [305, 28, 335, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out2"
Position [250, 103, 280, 117]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Zero-Order\nHold7"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold7"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -25; 180, 0]
Branch {
Points [160, 0]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [5, 0; 0, 10]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 30; -230, 0]
Branch {
Points [0, 20]
DstBlock "Out2"
DstPort 1
}
Branch {
Points [-105, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -20; 55, 0]
DstBlock "Fuzzy Control Subsystem"
DstPort 1
}
Branch {
Points [0, 15]
DstBlock "Derivative"
DstPort 1
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [5, 0]
DstBlock "Fuzzy Control Subsystem"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [15, 0; 0, 50; -95, 0; 0, 30; 30, 0]
Branch {
DstBlock "To Workspace1"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Fuzzy Control Subsystem"
SrcPort 1
Points [10, 0; 0, 55]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0; 0, -15]
Branch {
Points [15, 0]
DstBlock "Unit Delay\nTs=0.01"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Transfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.01"
SrcPort 1
Points [-5, 0]
DstBlock "Sum1"
DstPort 2
}
Annotation {
Position [102, 227]
Text "ex38s2.mdl. Chou, Penchen\nAn example of King's"
" on P.188.\nJuly 16, 2001. Test OK."
}
Annotation {
Position [358, 36]
Text "u[k]"
}
Annotation {
Position [308, 177]
Text "u[k-1]"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -