📄 ac_motor.mdl
字号:
}
Block {
BlockType TransferFcn
Name "Mechanical mode\nTransfer Fcn1"
Position [175, 27, 235, 63]
Numerator "[6.7734]"
Denominator "[0.101 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "position"
Position [350, 38, 380, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "velocity"
Position [350, 78, 380, 92]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Current"
Position [350, 108, 380, 122]
Port "3"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mechanical mode\nTransfer Fcn1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "velocity"
DstPort 1
}
}
Line {
SrcBlock "volt"
SrcPort 1
DstBlock "Electrical mode\nTransfer Fcn"
DstPort 1
}
Line {
SrcBlock "Electrical mode\nTransfer Fcn"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mechanical mode\nTransfer Fcn1"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Current"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "position"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [360, 151, 365, 189]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [390, 154, 420, 186]
Floating off
Location [11, 418, 282, 572]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "150"
YMin "-5"
YMax "10"
SaveToWorkspace on
SaveName "Y"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "50000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Speed PI\nSubsystem"
Ports [1, 1]
Position [235, 62, 280, 98]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Speed PI\nSubsystem"
Location [371, 115, 701, 234]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType Gain
Name "Gain1"
Position [80, 26, 135, 64]
Gain "2.9556"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [230, 35, 250, 55]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [160, 57, 220, 93]
Numerator "[94.4824]"
Denominator "[1 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out1"
Position [275, 38, 305, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Transfer Fcn"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [15, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [200, 70, 220, 90]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [300, 70, 320, 90]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [120, 70, 140, 90]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [90, 13, 110, 37]
VariableName "t"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Kp Position\nGain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Speed PI\nSubsystem"
DstPort 1
}
Line {
SrcBlock "Speed PI\nSubsystem"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Current PI\nSubsystem1"
DstPort 1
}
Line {
SrcBlock "Current PI\nSubsystem1"
SrcPort 1
DstBlock "Motor\nSubsystem2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Kp Position\nGain"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Motor\nSubsystem2"
SrcPort 1
Points [30, 0; 0, 75; -170, 0]
Branch {
Points [-190, 0]
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 35]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Motor\nSubsystem2"
SrcPort 3
Points [0, 35; -150, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Motor\nSubsystem2"
SrcPort 2
Points [15, 0; 0, 55; -265, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Annotation {
Position [216, 24]
Text "ac_motor.mdl\nPenChen Chou, July 28, 2001"
}
Annotation {
Position [104, 184]
Text "Position command is limited to +-10"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -