📄 newfuzzy7.mdl
字号:
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "newfuzzy7"
Location [2, 82, 1014, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Demux
Name "Demux"
Ports [1, 6]
Position [340, 213, 345, 252]
BackgroundColor "black"
ShowName off
Outputs "6"
DisplayOption "bar"
Port {
PortNumber 2
Name "ang1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "ang2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "xbar"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "ang1bar"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 6
Name "ang2bar\n\n"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController \nwith Ruleviewer"
Ports [1, 1]
Position [165, 385, 225, 435]
Orientation "left"
NamePlacement "alternate"
SourceBlock "fuzblock/Fuzzy Logic \nController \nwith Rulevi"
"ewer"
SourceType "FIS"
ShowPortLabels on
fismatrix "myfuuzy5"
Ts "05."
}
Block {
BlockType Gain
Name "Gain1"
Position [400, 155, 430, 185]
Orientation "up"
NamePlacement "alternate"
Gain "0.1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain24"
Position [300, 385, 330, 415]
Orientation "left"
NamePlacement "alternate"
Gain " 0.001"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain25"
Position [290, 530, 320, 560]
Orientation "left"
NamePlacement "alternate"
Gain "0.001"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain26"
Position [125, 310, 155, 340]
Orientation "up"
NamePlacement "alternate"
Gain "-1000"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "u\n"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "More Info"
Ports []
Position [610, 20, 637, 45]
DropShadow on
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More Info"
Location [2, 82, 1014, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Annotation {
Name "Associated with the demo is an animation fu"
"nction that\nwill automatically open a figure window and display to it."
Position [476, 167]
UseDisplayTextAsClickCallback off
FontSize 16
}
Annotation {
Name "This FUZZY CONTROLLER system models a doubl"
"e pendulum system \nwith an applied external moment that varies periodically"
"."
Position [460, 122]
UseDisplayTextAsClickCallback off
FontSize 16
}
Annotation {
Name "Lions Wang\nBJUT\nIAIR\nRuan Xiaogang"
Position [462, 67]
UseDisplayTextAsClickCallback off
FontSize 16
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [255, 391, 260, 429]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [205, 119, 235, 151]
NamePlacement "alternate"
Floating off
Location [5, 52, 1021, 725]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope8"
Ports [1]
Position [325, 119, 355, 151]
NamePlacement "alternate"
Floating off
Location [5, 52, 1021, 725]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum14"
Ports [3, 1]
Position [350, 535, 370, 555]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [360, 390, 380, 410]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "ang1"
Ports [1]
Position [485, 114, 515, 146]
NamePlacement "alternate"
Floating off
Location [633, 183, 957, 422]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Mux
Name "ang1& ang2"
Ports [2, 1]
Position [785, 202, 815, 238]
Inputs "2"
}
Block {
BlockType Scope
Name "ang1bar"
Ports [1]
Position [660, 114, 690, 146]
NamePlacement "alternate"
Floating off
Location [633, 183, 957, 422]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData10"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "ang2"
Ports [1]
Position [535, 114, 565, 146]
NamePlacement "alternate"
Floating off
Location [5, 52, 1021, 725]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "ang2bar"
Ports [1]
Position [715, 114, 745, 146]
NamePlacement "alternate"
Floating off
Location [633, 183, 957, 422]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType StateSpace
Name "double pend system"
Position [235, 218, 295, 252]
A "[0 0 0 1.0000 0 0 ;0 0 0 0 1.0000 0 ;0 0 0 0 0"
" 1.0000;
\n0 -1.5352 0.0487 -10.1733 0.0066 -0.0034 ;0 38.3769 -13.8131"
" 22.1408 -0.2412 0.1629
;0 -41.4394 39.1031 -2.1059 0.4085 -0.3240]"
B "[0;0;0;0.9597; -2.0888; 0.1987]"
C "[1 0 0 0 0 0;0 1 0 0 0 0;0 0 1 0 0 0; 0 0 0 1 0"
" 0;0 0 0 0 1 0;0 0 0 0 0 1 ]"
D "[0;0;0;0;0;0]"
X0 "[0 0.2 0 0 0 0]"
Port {
PortNumber 1
Name "x"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Scope
Name "e"
Ports [1]
Position [305, 444, 335, 476]
Floating off
Location [212, 226, 536, 465]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "16"
YMin "-2.061349693251536"
YMax "1.938650306748464"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "ec"
Ports [1]
Position [195, 529, 225, 561]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [212, 226, 536, 465]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -