📄 fuzzyindelay.mdl
字号:
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
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 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 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 TransportDelay
DelayTime "1"
InitialOutput "0"
BufferSize "1024"
FixedBuffer off
TransDelayFeedthrough off
PadeOrder "0"
}
}
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 "FuzzyInDelay"
Location [2, 73, 1022, 724]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [40, 85, 70, 115]
Value "420"
}
Block {
BlockType Constant
Name "Constant1"
Position [260, 185, 290, 215]
}
Block {
BlockType Derivative
Name "Derivative"
Position [145, 130, 175, 160]
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController"
Ports [1, 1]
Position [275, 99, 335, 151]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
ShowPortLabels on
fis "FuzzyInDelay"
}
Block {
BlockType Gain
Name "Kc"
Position [195, 130, 225, 160]
}
Block {
BlockType Gain
Name "Ke"
Position [180, 84, 230, 116]
Gain "0.2"
}
Block {
BlockType Gain
Name "Ku"
Position [410, 110, 440, 140]
Gain "0.1"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [250, 76, 255, 169]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [90, 90, 110, 110]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [365, 115, 385, 135]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [620, 115, 640, 135]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [455, 107, 515, 143]
Denominator "[1 0]"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay1500"
Position [330, 185, 360, 215]
DelayTime "1500"
PadeOrder "2"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay240"
Position [565, 175, 595, 205]
DelayTime "240"
PadeOrder "2"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay80"
Position [560, 110, 590, 140]
DelayTime "80"
PadeOrder "2"
}
Block {
BlockType Scope
Name "e"
Ports [1]
Position [155, 39, 185, 71]
Floating off
Location [211, 334, 719, 551]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "300 "
YMin "-2.5e+054"
YMax "3.25e+055"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "u"
Ports [1]
Position [405, 44, 435, 76]
Floating off
Location [173, 327, 805, 566]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "300 "
YMin "-2.5e+054"
YMax "3.25e+055"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "yout"
Ports [1]
Position [695, 109, 725, 141]
Floating off
Location [145, 285, 691, 524]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "320"
YMin "-2.5e+054"
YMax "3.25e+055"
DataFormat "StructureWithTime"
SampleTime "0"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [-5, 0; 5, 0]
Branch {
DstBlock "Ke"
DstPort 1
}
Branch {
Points [10, 0; 0, 45]
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [10, 0; 0, -45]
DstBlock "e"
DstPort 1
}
}
Line {
SrcBlock "Ke"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Kc"
DstPort 1
}
Line {
SrcBlock "Kc"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fuzzy Logic \nController"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -65]
DstBlock "u"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "yout"
DstPort 1
}
Branch {
Points [0, 140; -565, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Transport\nDelay1500"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay1500"
SrcPort 1
Points [10, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Transport\nDelay240"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Transport\nDelay80"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Transport\nDelay240"
DstPort 1
}
}
Line {
SrcBlock "Transport\nDelay80"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Ku"
DstPort 1
}
Line {
SrcBlock "Ku"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -