?? ex38s1.mdl
字號:
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, -70; -55, 0; 0, -25]
DstBlock "Product"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Abs Error Subsystem2"
Ports [2, 1]
Position [50, 229, 120, 256]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Abs Error Subsystem2"
Location [294, 145, 656, 396]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "err"
Position [25, 15, 55, 35]
Orientation "down"
NamePlacement "alternate"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "t"
Position [25, 80, 55, 100]
Orientation "down"
NamePlacement "alternate"
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [55, 45, 85, 75]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [15, 125, 45, 155]
Value "40"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 185, 45, 215]
Value "60"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [110, 45, 135, 75]
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [170, 147, 200, 178]
Operator "AND"
Inputs "2"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [170, 42, 190, 78]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [105, 112, 135, 143]
Operator ">="
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [105, 177, 135, 208]
Operator "<="
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [245, 52, 265, 83]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.1"
Position [240, 100, 275, 140]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out1"
Position [310, 88, 340, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, -70; -55, 0; 0, -25]
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "t"
SrcPort 1
Points [0, 15; 45, 0]
Branch {
Points [0, 65]
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0; 0, 25]
Branch {
DstBlock "Unit Delay\nTs=0.1"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay\nTs=0.1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "err"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Abs Error Subsystem3"
Ports [2, 1]
Position [50, 184, 120, 211]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Abs Error Subsystem3"
Location [292, 147, 654, 398]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "err"
Position [25, 15, 55, 35]
Orientation "down"
NamePlacement "alternate"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "t"
Position [25, 80, 55, 100]
Orientation "down"
NamePlacement "alternate"
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [55, 45, 85, 75]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [15, 125, 45, 155]
Value "10"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 185, 45, 215]
Value "30"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [110, 45, 135, 75]
Gain "10"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [170, 147, 200, 178]
Operator "AND"
Inputs "2"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [170, 42, 190, 78]
Inputs "3"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [105, 112, 135, 143]
Operator ">="
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [105, 177, 135, 208]
Operator "<="
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [245, 52, 265, 83]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay\nTs=0.1"
Position [240, 100, 275, 140]
Orientation "left"
X0 "0"
SampleTime "0.01"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out1"
Position [310, 88, 340, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "err"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Unit Delay\nTs=0.1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0; 0, 25]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
DstBlock "Unit Delay\nTs=0.1"
DstPort 1
}
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "t"
SrcPort 1
Points [0, 15; 45, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [15, 0]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [0, -70; -55, 0; 0, -25]
DstBlock "Product"
DstPort 3
}
}
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise"
Ports [0, 1]
Position [30, 25, 60, 55]
SourceBlock "simulink3/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "[2]"
Ts "30"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Clock
Name "Clock"
Position [30, 115, 50, 135]
DisplayTime off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [60, 381, 100, 409]
Value "Emin+1"
VectorParams1D on
}
Block {
BlockType Derivative
Name "Derivative"
Position [180, 49, 205, 81]
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [305, 245, 395, 275]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Double click\non this for demo.5"
Ports []
Position [320, 389, 491, 420]
BackgroundColor "green"
ShowName off
OpenFcn "ex38_init"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Load initial data before simulation\\nDou"
"ble clicks on this ICON')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Double click\non this for demo.5"
Location [44, 351, 171, 504]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Fuzzy Control Subsystem"
Ports [2, 1]
Position [230, 22, 285, 73]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Fuzzy Control Subsystem"
Location [307, 286, 733, 414]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -