📄 ex382.mdl
字号:
SrcPort 1
DstBlock "Delays 1"
DstPort 1
}
}
}
Block {
BlockType Goto
Name "a{1}"
Position [380, 40, 400, 60]
GotoTag "feedback1"
TagVisibility "local"
MaskDisplay "plot(cos(0:.1:2*pi),sin(0:.1:2*pi))"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Outport
Name "y{1}"
Position [380, 120, 400, 140]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Layer 2"
SrcPort 1
DstBlock "y{1}"
DstPort 1
}
Line {
SrcBlock " a{1} "
SrcPort 1
DstBlock "Layer 2"
DstPort 1
}
Line {
SrcBlock "Layer 1"
SrcPort 1
DstBlock "a{1}"
DstPort 1
}
Line {
SrcBlock "p{1}"
SrcPort 1
DstBlock "Layer 1"
DstPort 1
}
}
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [400, 35, 425, 65]
SampleTime "1"
}
Block {
BlockType Outport
Name "Out1"
Position [440, 43, 470, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Neural Network1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Neural Network1"
DstPort 1
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [0, -10]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Zero-Order\nHold3"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [505, 34, 535, 66]
Floating off
Location [6, 59, 238, 214]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "30"
YMin "0"
YMax "3"
SaveToWorkspace on
SaveName "data"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput on
SampleTime "1"
}
Block {
BlockType Step
Name "Step"
Position [25, 25, 55, 55]
Time "0"
Before "0"
After "2"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 32, 125, 63]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [90, 107, 110, 138]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [90, 187, 110, 218]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [315, 107, 385, 143]
Numerator "[3.7394]"
Denominator "[1 13.3534 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn2"
Position [275, 32, 345, 68]
Numerator "[3.7394]"
Denominator "[1 13.3534 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn3"
Position [315, 187, 385, 223]
Numerator "[3.7394]"
Denominator "[1 13.3534 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [225, 35, 255, 65]
DelayTime "3"
InitialInput "0"
BufferSize "4096"
PadeOrder "2"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay1"
Position [260, 110, 290, 140]
DelayTime "3"
InitialInput "0"
BufferSize "4096"
PadeOrder "2"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay2"
Position [260, 190, 290, 220]
DelayTime "3"
InitialInput "0"
BufferSize "4096"
PadeOrder "2"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [365, 35, 390, 65]
SampleTime "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [395, 0, 420, 30]
SampleTime "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [415, 110, 440, 140]
SampleTime "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [415, 190, 440, 220]
SampleTime "1"
}
Block {
BlockType SubSystem
Name "discrete PD\nSubsystem"
Ports [1, 1]
Position [150, 37, 195, 63]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "discrete PD\nSubsystem"
Location [187, 92, 566, 255]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom off
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [85, 82, 115, 118]
Numerator "[1 -1]"
Denominator "[1 0]"
SampleTime "1"
Realization "auto"
}
Block {
BlockType Gain
Name "Gain"
Position [250, 26, 315, 64]
Gain "0.5"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [130, 84, 195, 116]
Gain "0.46"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [210, 35, 230, 55]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [325, 38, 355, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "NCD Outport"
Position [250, 265, 305, 325]
DropShadow on
OpenFcn "optblock"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
MaskType "NCD Outport"
MaskDisplay "plot([0:10],[-.5 1.5 .6 1.3 .8 1.1 .95 1.02 .99"
" 1 1]);\ndisp('\\n\\n NCD\\n OutPort 1'); "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Line {
SrcBlock "Step"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -25]
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Sum2"
DstPort 1
}
}
}
}
Line {
SrcBlock "Transfer Fcn2"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "discrete PD\nSubsystem"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
DstBlock "Transfer Fcn2"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [10, 0]
Branch {
Points [60, 0]
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 40; -315, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
Points [40, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "discrete PD\nSubsystem"
SrcPort 1
DstBlock "Transport\nDelay"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Zero-Order\nHold2"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay1"
SrcPort 1
DstBlock "Transfer Fcn1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold2"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -70]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [0, 45; -375, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Neural Subsystem"
SrcPort 1
DstBlock "Transport\nDelay1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Neural Subsystem"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn3"
SrcPort 1
DstBlock "Zero-Order\nHold3"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay2"
SrcPort 1
DstBlock "Transfer Fcn3"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 45; -235, 0]
Branch {
Points [-140, 0]
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 45]
DstBlock "NCD Outport"
DstPort 1
}
}
Branch {
Points [10, 0; 0, -140]
DstBlock "Mux1"
DstPort 4
}
}
Line {
SrcBlock "Fuzzy Subsystem"
SrcPort 1
DstBlock "Transport\nDelay2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Fuzzy Subsystem"
DstPort 1
}
Annotation {
Position [52, 300]
Text "ex382.mdl"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -