📄 chap4_3.mdl
字号:
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Derivative
LinearizePole "inf"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
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 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 "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D 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 TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType ZeroOrderHold
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 "chap4_3"
Location [2, 78, 1022, 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 Derivative
Name "Derivative"
Position [370, 260, 400, 290]
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController \nwith Ruleviewer"
Ports [1, 1]
Position [500, 230, 560, 280]
LinkData {
BlockName "Fuzzy Logic\nController"
DialogParameters {
fis "a2"
}
}
SourceBlock "fuzblock/Fuzzy Logic \nController \nwith Rulevi"
"ewer"
SourceType "FIS"
ShowPortLabels on
fismatrix "a2"
Ts "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [440, 205, 470, 300]
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [770, 185, 800, 280]
ShowName off
Inputs "2"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [825, 219, 855, 251]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "3"
YMin "0.29"
YMax "0.47"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [635, 334, 665, 366]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-20"
YMax "40"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [400, 179, 430, 211]
Location [200, 238, 524, 477]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-20"
YMax "40"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [190, 226, 230, 264]
SineType "Time based"
Amplitude "0.5"
Frequency "20"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [295, 230, 325, 260]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [605, 226, 685, 284]
Numerator "[500]"
Denominator "[1 5 0]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController \nwith Ruleviewer"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 30]
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, -15]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope2"
DstPort 1
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -105; 450, 0; 0, 70]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController \nwith Ruleviewer"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 95]
DstBlock "Scope1"
DstPort 1
}
Branch {
DstBlock "Transfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 155; -400, 0]
DstBlock "Sum"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -