?? ipa_rtw.mdl
字號:
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [2, 1]
Position [285, 37, 315, 68]
ExternalReset "none"
InitialConditionSource "external"
InitialCondition "Init_P*pi/180"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "Motor\nTransfer Fcn"
Position [70, 32, 115, 68]
Numerator "100"
Denominator "[1 100]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [235, 78, 240, 132]
Orientation "left"
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Saturate
Name "Saturation"
Position [340, 40, 370, 70]
UpperLimit "pi/2"
LowerLimit "-pi/2"
LinearizeAsGain on
}
Block {
BlockType Outport
Name "y"
Position [405, 78, 435, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "dy"
Position [405, 118, 435, 132]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Labels [4, 0]
SrcBlock "Motor\nTransfer Fcn"
SrcPort 1
Points [10, 0; 0, 100; 150, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock "Motor\nTransfer Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [0, -70]
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [30, 0; 15, 0]
Branch {
DstBlock "Integrator1"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [0, 10]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [65, 0; 0, 30]
DstBlock "dy"
DstPort 1
}
}
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [5, 0; 0, 30]
Branch {
DstBlock "y"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "int1"
SrcPort 1
Points [85, 0; 0, -40]
DstBlock "Integrator1"
DstPort 2
}
Line {
SrcBlock "int2"
SrcPort 1
Points [90, 0; 0, -90]
DstBlock "Integrator"
DstPort 2
}
}
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [20, 120, 50, 150]
Mean "0"
Variance "1"
Seed "0"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [475, 24, 505, 56]
Floating off
Location [7, 53, 236, 225]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "6"
YMin "-40"
YMax "40"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [480, 119, 510, 151]
Floating off
Location [6, 278, 235, 450]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "10"
YMin "-20"
YMax "0"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [15, 25, 45, 55]
Time "0"
Before "0"
After "0"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [75, 30, 95, 50]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [340, 25, 360, 45]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [475, 75, 495, 95]
VariableName "y"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [475, 170, 495, 190]
VariableName "dy"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [335, 140, 360, 170]
VariableName "t"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Outport
Name "Out1"
Position [135, 13, 165, 27]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out2"
Position [70, 98, 100, 112]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out3"
Position [395, 78, 425, 92]
Orientation "left"
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out4"
Position [400, 173, 430, 187]
Orientation "left"
Port "4"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 15]
Branch {
Points [0, 30]
Branch {
DstBlock "To Workspace"
DstPort 1
}
Branch {
DstBlock "Out3"
DstPort 1
}
}
Branch {
Points [10, 0]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace2"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Out2"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Derivative"
DstPort 1
}
Branch {
Points [15, 0; 0, -5; 5, 0]
Branch {
DstBlock "FLC Subsystem"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "Derivative"
SrcPort 1
Points [5, 0]
DstBlock "FLC Subsystem"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 45]
Branch {
DstBlock "To Workspace1"
DstPort 1
}
Branch {
DstBlock "Out4"
DstPort 1
}
}
}
Line {
SrcBlock "Inverted Pendulum\nSubsystem"
SrcPort 2
Points [55, 0]
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [70, 0; 0, -150]
DstBlock "Inverted Pendulum\nSubsystem"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [75, 0; 0, -185]
DstBlock "Inverted Pendulum\nSubsystem"
DstPort 3
}
Line {
SrcBlock "FLC Subsystem"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Inverted Pendulum\nSubsystem"
DstPort 1
}
Line {
SrcBlock "Inverted Pendulum\nSubsystem"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0]
Branch {
Points [5, 0]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 70; -285, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Random\nNumber"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [205, 0]
DstBlock "Sum1"
DstPort 2
}
Annotation {
Position [343, 234]
Text "IPa_rtw.mdl\nPenChen Chou, July 30, 2001\nInit_"
"P is from -10 to 10.\nInit_V is from -40 to 40.\nLoad ex621f.fis before simul"
"ation."
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -