📄 armsys.mdl
字号:
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
Floating off
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 "0"
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
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"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "armsys"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Fuzzy Logic \nController"
Ports [1, 1]
Position [330, 146, 390, 194]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "fis"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [300, 273, 320, 347]
Orientation "left"
ShowName off
Inputs "3"
}
Block {
BlockType Step
Name "Step"
Position [275, 35, 305, 65]
Time "25"
After "-10"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [275, 95, 305, 125]
Time "25.1"
After "-10"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 3]
Position [460, 140, 500, 200]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "initial conditions"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "init_cond=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0 0 0]"
System {
Name "Subsystem"
Location [2, 78, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 58, 55, 72]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [285, 30, 310, 100]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType StateSpace
Name "State-Space"
Position [150, 29, 245, 101]
A "[0.1 1 -1;-0.9 -0.09 0.09;0.1 0.01 -0.01]"
B "[0;0.9;0]"
C "[1 0 0;0 1 0;0 0 1]"
D "[0;0;0]"
X0 "[0 0 0]"
}
Block {
BlockType Outport
Name "Out1"
Position [475, 33, 505, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [550, 68, 580, 82]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out3"
Position [465, 113, 495, 127]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [65, 0; 0, 30]
DstBlock "Out3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [15, 0; 0, 15; 135, 0; 0, -5]
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Subtract"
Ports [2, 1]
Position [535, 347, 565, 378]
Orientation "left"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract1"
Ports [2, 1]
Position [535, 292, 565, 323]
Orientation "left"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract2"
Ports [2, 1]
Position [375, 67, 405, 98]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [415, 160, 435, 180]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "fai"
Ports [1]
Position [630, 99, 660, 131]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "50"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "pulse"
Ports [1]
Position [490, 69, 520, 101]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "50"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Constant
Name "targate w"
Position [690, 355, 720, 385]
Orientation "left"
Value "50"
}
Block {
BlockType Scope
Name "w1"
Ports [1]
Position [680, 154, 710, 186]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "50"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "w2"
Ports [1]
Position [685, 254, 715, 286]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "200"
YMin "32.7795"
YMax "36.2299"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [-25, 0; 0, -140]
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 3
Points [100, 0; 0, 80]
Branch {
Points [0, 45]
Branch {
Points [0, 40]
DstBlock "Subtract"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Subtract1"
DstPort 2
}
}
Branch {
DstBlock "w2"
DstPort 1
}
}
Line {
SrcBlock "targate w"
SrcPort 1
DstBlock "Subtract"
DstPort 2
}
Line {
SrcBlock "Subtract"
SrcPort 1
Points [-195, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 135]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "fai"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Subsystem"
SrcPort 2
Points [85, 0]
Branch {
DstBlock "w1"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Subtract1"
DstPort 1
}
}
Line {
SrcBlock "Subtract1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Step"
SrcPort 1
Points [30, 0; 0, 25]
DstBlock "Subtract2"
DstPort 1
}
Line {
SrcBlock "Step1"
SrcPort 1
Points [30, 0; 0, -20]
DstBlock "Subtract2"
DstPort 2
}
Line {
SrcBlock "Subtract2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "pulse"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -