📄 ex383.mdl
字号:
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [95, 272, 125, 303]
Operator ">"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [505, 34, 535, 66]
Floating off
Location [6, 59, 238, 214]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "150"
YMin "-1"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [500, 164, 530, 196]
Floating off
Location [7, 270, 239, 425]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "150"
YMin "0"
YMax "30000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Stop
Name "Stop Simulation"
Position [325, 247, 360, 283]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [85, 32, 105, 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 Sum
Name "Sum2"
Ports [4, 1]
Position [175, 181, 195, 229]
IconShape "rectangular"
Inputs "++++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [85, 337, 105, 368]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [220, 347, 240, 378]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [270, 134, 290, 156]
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 UnitDelay
Name "Unit Delay\nTs=0.01"
Position [325, 145, 360, 185]
Orientation "left"
X0 "0"
SampleTime "0.01"
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.1"
Position [215, 390, 250, 410]
Orientation "left"
X0 "0"
SampleTime "0.01"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [410, 115, 440, 145]
SampleTime "0.01"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold7"
Position [215, 130, 245, 160]
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 "[]"
}
Block {
BlockType Outport
Name "Out3"
Position [205, 243, 235, 257]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out4"
Position [420, 243, 450, 257]
Port "4"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out5"
Position [420, 273, 450, 287]
Port "5"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Zero-Order\nHold7"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold7"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [0, 30; -235, 0]
Branch {
Points [0, -10]
Branch {
Points [0, -45]
DstBlock "Abs Error Subsystem3"
DstPort 2
}
Branch {
DstBlock "Abs Error Subsystem2"
DstPort 2
}
}
Branch {
Points [0, 30]
Branch {
Points [0, 40]
DstBlock "Abs Error Subsystem"
DstPort 2
}
Branch {
DstBlock "Abs Error Subsystem1"
DstPort 2
}
}
}
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -25; 80, 0]
Branch {
Points [140, 0]
Branch {
Points [170, 0]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Branch {
Points [0, 320; -80, 0]
DstBlock "Sum3"
DstPort 1
}
}
}
Line {
SrcBlock "Plant"
SrcPort 1
Points [5, 0; 0, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 40; -230, 0]
Branch {
Points [-150, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "Out2"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -20; 90, 0]
DstBlock "Fuzzy Control Subsystem"
DstPort 1
}
Branch {
Points [0, 15; 30, 0]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, 20; -115, 0; 0, 20]
Branch {
DstBlock "Abs Error Subsystem3"
DstPort 1
}
Branch {
Points [0, 45]
Branch {
DstBlock "Abs Error Subsystem2"
DstPort 1
}
Branch {
Points [0, 40]
Branch {
Points [0, 40]
DstBlock "Abs Error Subsystem"
DstPort 1
}
Branch {
DstBlock "Abs Error Subsystem1"
DstPort 1
}
}
}
}
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Fuzzy Control Subsystem"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 50; -95, 0]
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
Line {
SrcBlock "Fuzzy Control Subsystem"
SrcPort 1
Points [10, 0; 0, 50]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0; 0, -15]
Branch {
Points [0, -50]
DstBlock "Plant"
DstPort 1
}
Branch {
Points [15, 0]
DstBlock "Unit Delay\nTs=0.01"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.01"
SrcPort 1
Points [-5, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
Points [0, 35; 70, 0; 0, -35]
DstBlock "Display1"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [5, 0; 0, -25]
Branch {
Points [0, -15]
DstBlock "Out3"
DstPort 1
}
Branch {
DstBlock "Stop Simulation"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [10, 0]
Branch {
Points [75, 0]
Branch {
Points [0, 40]
DstBlock "Out4"
DstPort 1
}
Branch {
Points [15, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Scope1"
DstPort 1
}
}
}
Branch {
Points [0, 50; -200, 0]
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Abs Error Subsystem3"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Abs Error Subsystem2"
SrcPort 1
Points [25, 0; 0, 40]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Abs Error Subsystem1"
SrcPort 1
Points [0, 10]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Abs Error Subsystem"
SrcPort 1
Points [0, -20]
DstBlock "Sum2"
DstPort 4
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Neural Subsystem"
DstPort 1
}
Line {
SrcBlock "Plant1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 25; -315, 0]
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [0, -75]
Branch {
Points [0, -240; 75, 0]
DstBlock "Mux1"
DstPort 3
}
Branch {
DstBlock "Out5"
DstPort 1
}
}
}
Line {
SrcBlock "Neural Subsystem"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [25, 0]
DstBlock "Plant1"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Unit Delay\nTs=0.1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum4"
DstPort 2
}
Annotation {
Position [457, 337]
Text "ex383.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 + -