📄 dtc.mdl
字号:
DstBlock "P"
DstPort 1
}
Line {
SrcBlock "Flux Controller"
SrcPort 1
Points [90, 0; 0, -205; -210, 0; 0, 55]
DstBlock "Switch table"
DstPort 1
}
Line {
SrcBlock "Torque Controller"
SrcPort 1
DstBlock "Switch table"
DstPort 2
}
Line {
SrcBlock "Amp SS"
SrcPort 1
Points [30, 0; 0, -55; 50, 0]
DstBlock "Switch table"
DstPort 3
}
Line {
SrcBlock "Speed Controller"
SrcPort 1
Points [20, 0]
Branch {
Points [50, 0; 0, -5]
DstBlock "Torque Controller"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Te*"
DstPort 1
}
}
Line {
SrcBlock "Te"
SrcPort 1
DstBlock "Torque Controller"
DstPort 2
}
Line {
SrcBlock "wr"
SrcPort 1
DstBlock "Speed Controller"
DstPort 1
}
Line {
SrcBlock "wref"
SrcPort 1
DstBlock "Speed Controller"
DstPort 2
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [580, 341, 585, 379]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [875, 129, 880, 201]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 2]
Position [495, 66, 500, 104]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Gain
Name "Gain"
Position [565, 580, 595, 610]
Gain "K"
}
Block {
BlockType Gain
Name "Gain1"
Position [415, 525, 445, 555]
Gain "K"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [350, 453, 355, 527]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [640, 552, 645, 603]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [810, 357, 815, 408]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [375, 157, 405, 233]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-0.8~-1.5~-0.0175"
YMax "0.8~1.5~0.02"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [665, 312, 695, 388]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-400~-300"
YMax "400~300"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [970, 452, 1000, 528]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.2999999999999998"
YMin "-5~100"
YMax "6~100"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [3]
Position [955, 127, 985, 203]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "0~0~0"
YMax "1~1~1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [870, 264, 900, 296]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "-2"
YMax "2.25"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [640, 460, 680, 530]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-200"
YMax "200"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [490, 299, 520, 331]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "55"
YMax "105"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "Step"
Position [140, 250, 170, 280]
Time "0.5"
After "0.1"
SampleTime "0"
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [570, 65, 600, 100]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
xmin "-1"
xmax "1"
ymin "-1"
ymax "1"
st "-1"
}
Block {
BlockType SubSystem
Name "inverter"
Ports [2, 3]
Position [160, 448, 255, 532]
TreatAsAtomicUnit off
System {
Name "inverter"
Location [375, 196, 856, 473]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "P"
Position [40, 163, 70, 177]
}
Block {
BlockType Inport
Name "Vd"
Position [20, 63, 50, 77]
Port "2"
}
Block {
BlockType Constant
Name "Constant"
Position [50, 275, 80, 305]
Value "0.5"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [160, 138, 165, 202]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Gain
Name "Gain"
Position [190, 15, 220, 45]
}
Block {
BlockType Gain
Name "Gain1"
Position [215, 55, 245, 85]
Gain "-1"
}
Block {
BlockType Gain
Name "Gain2"
Position [115, 55, 145, 85]
Gain "0.5"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [300, 294, 330, 326]
Location [1, 56, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [230, 109, 250, 151]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [235, 169, 255, 211]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [240, 244, 260, 286]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Switch
Name "Switch"
Position [350, 106, 385, 154]
InputSameDT off
}
Block {
BlockType Switch
Name "Switch1"
Position [355, 171, 390, 219]
InputSameDT off
}
Block {
BlockType Switch
Name "Switch2"
Position [360, 246, 395, 294]
InputSameDT off
}
Block {
BlockType Outport
Name "VA"
Position [445, 123, 475, 137]
}
Block {
BlockType Outport
Name "VB"
Position [445, 188, 475, 202]
Port "2"
}
Block {
BlockType Outport
Name "VC"
Position [450, 268, 480, 282]
Port "3"
}
Line {
SrcBlock "P"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [30, 0; 0, -20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [30, 0; 0, 20]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [15, 0; 0, 75]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [70, 0; 0, -10; 45, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, -75; 10, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Vd"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [40, 0; 0, 5]
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [10, 0]
Branch {
Points [30, 0; 0, 5]
DstBlock "Switch2"
DstPort 2
}
Branch {
Points [0, 45]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -