im_perunit_model_v_over_f_mod.mdl
来自「closed loop rotor v/f control of inducti」· MDL 代码 · 共 2,445 行 · 第 1/5 页
MDL
2,445 行
BusOutputAsStruct off
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/3"
DstPort 1
}
Line {
SrcBlock "1/3"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "u_a"
SrcPort 1
DstBlock "2/3"
DstPort 1
}
Line {
SrcBlock "2/3"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "u_alpha "
DstPort 1
}
Line {
SrcBlock "u_b"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [5, 0; 0, 40]
DstBlock "Sum2"
DstPort 1
}
}
Line {
SrcBlock "u_c"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -40]
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Sum2"
DstPort 2
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "1/sqrt(3)"
DstPort 1
}
Line {
SrcBlock "1/sqrt(3)"
SrcPort 1
DstBlock "u_beta "
DstPort 1
}
}
}
Block {
BlockType Outport
Name "ia"
Position [610, 73, 640, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ib"
Position [610, 108, 640, 122]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ic"
Position [605, 158, 635, 172]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "psi_r_alpha"
Position [490, 133, 520, 147]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "psi_r_beta"
Position [495, 163, 525, 177]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "w"
Position [570, 193, 600, 207]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Te"
Position [510, 293, 540, 307]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "is_alpha"
Position [585, 28, 615, 42]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "is_beta"
Position [665, 248, 695, 262]
Port "9"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "fc3_2 "
SrcPort 1
Points [35, 0; 0, -5]
DstBlock "Inductuction Motor"
DstPort 1
}
Line {
SrcBlock "fc3_2 "
SrcPort 2
Points [35, 0; 0, 20]
DstBlock "Inductuction Motor"
DstPort 2
}
Line {
SrcBlock "va"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "fc3_2 "
DstPort 1
}
Line {
SrcBlock "vb"
SrcPort 1
Points [30, 0; 0, 10]
DstBlock "fc3_2 "
DstPort 2
}
Line {
SrcBlock "vc"
SrcPort 1
Points [40, 0; 0, -20]
DstBlock "fc3_2 "
DstPort 3
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 1
Points [15, 0]
Branch {
Points [20, 0; 0, 5]
DstBlock "fc2_3 "
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "is_alpha"
DstPort 1
}
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 2
Points [30, 0]
Branch {
DstBlock "fc2_3 "
DstPort 2
}
Branch {
Points [0, 150]
DstBlock "is_beta"
DstPort 1
}
}
Line {
SrcBlock "fc2_3 "
SrcPort 1
Points [25, 0; 0, -5]
DstBlock "ia"
DstPort 1
}
Line {
SrcBlock "fc2_3 "
SrcPort 2
Points [25, 0; 0, 20]
DstBlock "ib"
DstPort 1
}
Line {
SrcBlock "fc2_3 "
SrcPort 3
Points [15, 0; 0, 60]
DstBlock "ic"
DstPort 1
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 3
Points [0, 10]
DstBlock "psi_r_alpha"
DstPort 1
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 4
Points [0, 15]
DstBlock "psi_r_beta"
DstPort 1
}
Line {
SrcBlock "load_torque"
SrcPort 1
Points [5, 0]
DstBlock "Inductuction Motor"
DstPort 3
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 5
Points [0, 20]
DstBlock "w"
DstPort 1
}
Line {
SrcBlock "Inductuction Motor"
SrcPort 6
Points [0, 95]
DstBlock "Te"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [600, 491, 605, 529]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [115, 201, 120, 239]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [115, 261, 120, 299]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [115, 316, 120, 354]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Ramp"
Ports [0, 1]
Position [25, 665, 55, 695]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "0.5"
start "0"
X0 "0"
VectorParams1D on
}
Block {
BlockType Reference
Name "Rotor Flux vector"
Ports [2]
Position [900, 540, 930, 575]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
xmin "-1.5"
xmax "1.5"
ymin "-1.5"
ymax "1.5"
st "-1"
}
Block {
BlockType Saturate
Name "Saturation"
Position [165, 655, 195, 685]
UpperLimit "wref"
LowerLimit "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [755, 188, 840, 302]
Floating off
Location [5, 56, 1285, 997]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-1.5~-16.5~-5"
YMax "1.5~-6.5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [690, 570, 775, 685]
Floating off
Location [5, 56, 1285, 997]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "0.35~1.5"
YMax "0.385~3"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [935, 385, 1020, 500]
Floating off
Location [5, 56, 1285, 779]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [3]
Position [465, 88, 550, 202]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-1~-1~-1"
YMax "1~1~1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [960, 642, 1045, 758]
Floating off
Location [5, 56, 1285, 779]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [345, 602, 430, 718]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "1"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [245, 390, 275, 420]
Time "0"
After "0"
SampleTime "0"
}
Block {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?