📄 foc_multilevel.mdl
字号:
DstPort 4
}
Line {
SrcBlock "Estimator1"
SrcPort 1
DstBlock "unit vectors"
DstPort 1
}
Line {
SrcBlock "we"
SrcPort 1
DstBlock "Estimator1"
DstPort 1
}
Line {
SrcBlock "vds*"
SrcPort 1
DstBlock "Syn-abc3"
DstPort 2
}
Line {
SrcBlock "vqs*"
SrcPort 1
DstBlock "Syn-abc3"
DstPort 1
}
Line {
SrcBlock "Syn-abc3"
SrcPort 2
DstBlock "vbo*"
DstPort 1
}
Line {
SrcBlock "Syn-abc3"
SrcPort 3
DstBlock "vco*"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Demo"
Ports [3]
Position [723, 95, 787, 125]
Orientation "up"
FontName "Arial"
FontSize 14
Floating off
Location [1, 45, 1281, 771]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "Motor Speed (rad/sec)"
axes2 "Torque (N-m)"
axes3 "Stator Currents (Amps)"
}
TimeRange "0.499995 "
YMin "93.5~-25~-500"
YMax "100.5~275~500"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "2"
}
Block {
BlockType Scope
Name "Demo1"
Ports [3]
Position [539, 15, 571, 90]
Orientation "up"
FontName "Arial"
FontSize 14
Floating off
Location [1, 45, 1281, 771]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "Motor Speed (rad/sec)"
axes2 "Torque (N-m)"
axes3 "Stator Currents (Amps)"
}
TimeRange "0.499995 "
YMin "-450~-450~-450"
YMax "450~450~450"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "2"
}
Block {
BlockType SubSystem
Name "Load Torque"
Ports [0, 1]
Position [500, 262, 535, 278]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Load Torque"
Location [246, 201, 667, 502]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Timer"
Ports [0, 1]
Position [120, 26, 165, 64]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/Timer"
SourceType "Timer"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
t "[ 0 0.6 1 ]"
e "[0 200 100 ]"
}
Block {
BlockType Outport
Name "Tl"
Position [195, 38, 225, 52]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Timer"
SrcPort 1
DstBlock "Tl"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [705, 122, 710, 198]
ShowName off
FontName "Arial"
FontSize 14
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [695, 231, 700, 269]
ShowName off
FontName "Arial"
FontSize 14
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [710, 271, 715, 309]
ShowName off
FontName "Arial"
FontSize 14
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "PWM inverter"
Ports [3, 3]
Position [460, 93, 535, 217]
DropShadow on
FontName "Arial"
FontSize 11
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "PWM inverter"
Location [2, 74, 1254, 756]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "vao*"
Position [90, 133, 120, 147]
FontName "Arial"
FontSize 14
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "vbo*\n"
Position [90, 238, 120, 252]
FontName "Arial"
FontSize 14
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "vco*"
Position [90, 363, 120, 377]
FontName "Arial"
FontSize 14
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "\n"
Position [360, 91, 420, 119]
FontName "Arial"
FontSize 14
Value "0.5*vd"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "\n\n"
Position [360, 151, 420, 179]
FontName "Arial"
FontSize 14
Value "-0.5*vd"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "\n\n1"
Position [495, 521, 555, 549]
FontName "Arial"
FontSize 14
Value "-vd"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "\n1"
Position [495, 461, 555, 489]
FontName "Arial"
FontSize 14
Value "vd"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [830, 372, 860, 403]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [840, 552, 870, 583]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [840, 712, 870, 743]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RelationalOperator
Name "Comparator - b"
Position [265, 222, 295, 253]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType RelationalOperator
Name "Comparator - b1"
Position [400, 592, 430, 623]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType RelationalOperator
Name "Comparator - a"
Position [265, 117, 295, 148]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType RelationalOperator
Name "Comparator - a1"
Position [400, 487, 430, 518]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType RelationalOperator
Name "Comparator - c"
Position [270, 347, 300, 378]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType RelationalOperator
Name "Comparator - c1"
Position [405, 717, 435, 748]
FontName "Arial"
FontSize 14
Operator "<="
SampleTime "0"
}
Block {
BlockType Scope
Name "Demo"
Ports [3]
Position [918, 340, 982, 370]
Orientation "up"
FontName "Arial"
FontSize 14
Floating off
Location [6, 56, 806, 573]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "Motor Speed (rad/sec)"
axes2 "Torque (N-m)"
axes3 "Stator Currents (Amps)"
}
TimeRange "0.499995 "
YMin "-500~-1~-1"
YMax "500~1~1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "2"
}
Block {
BlockType Switch
Name "phase leg a"
Position [505, 98, 535, 172]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "phase leg a1"
Position [640, 468, 670, 542]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "phase leg b"
Position [505, 204, 535, 276]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "phase leg b1"
Position [640, 574, 670, 646]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "phase leg c"
Position [510, 326, 540, 404]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "phase leg c1"
Position [645, 696, 675, 774]
FontName "Arial"
FontSize 14
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "vref"
Ports [0, 1]
Position [180, 80, 210, 110]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
rep_seq_t "[0 25e-6 50e-6 75e-6 100e-6]"
rep_seq_y "[0 1 0 -1 0]"
}
Block {
BlockType Reference
Name "vref1"
Ports [0, 1]
Position [315, 450, 345, 480]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -