📄 svpwm.mdl
字号:
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [390, 109, 420, 261]
ShowName off
Inputs "|+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [250, 54, 285, 126]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [250, 169, 285, 241]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch2"
Position [250, 334, 285, 406]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "N"
Position [510, 178, 540, 192]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Ubeta"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, 115]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0; 0, 25]
Branch {
DstBlock "Switch"
DstPort 1
}
Branch {
Points [0, 115]
Branch {
Points [0, 165]
DstBlock "Switch2"
DstPort 1
}
Branch {
DstBlock "Switch1"
DstPort 1
}
}
}
Line {
SrcBlock "Ualfa"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 25]
DstBlock "Gain1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Switch2"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, -80]
Branch {
Points [0, -165]
Branch {
Points [0, -115]
DstBlock "Switch"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 3
}
}
Branch {
DstBlock "Switch2"
DstPort 3
}
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [55, 0; 0, 75]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [10, 0; 0, -125]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "N"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [5, 2]
Position [490, 494, 550, 676]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [2, 93, 1014, 732]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "N"
Position [20, 18, 50, 32]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "X"
Position [25, 143, 55, 157]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Y"
Position [25, 188, 55, 202]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Z"
Position [25, 233, 55, 247]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T"
Position [20, 323, 50, 337]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name " "
Position [105, 135, 135, 165]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name " "
Position [105, 180, 135, 210]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name " "
Position [105, 225, 135, 255]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [430, 367, 460, 398]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "Fcn"
Position [435, 155, 495, 185]
Expr "u(3)-u(2)-u(1)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [435, 100, 495, 130]
Expr "u(1)*u(3)/(u(1)+u(2))"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [435, 220, 495, 250]
Expr "u(2)*u(3)/(u(1)+u(2))"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [230, 20, 275, 150]
Inputs "6"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [7, 1]
Position [225, 190, 270, 310]
Inputs "6"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [380, 69, 390, 271]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope4"
Ports [3]
Position [765, 93, 800, 357]
Floating off
Location [6, 54, 1030, 741]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.35"
YMin "-1e-005~-1e-005~0.00011"
YMax "0.00018~0.00018~0.000205"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch"
Position [565, 47, 595, 103]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [570, 231, 600, 299]
Criteria "u2 > Threshold"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "T1"
Position [650, 68, 680, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "T2"
Position [655, 258, 685, 272]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "N"
SrcPort 1
Points [140, 0; 15, 0]
Branch {
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Branch {
DstBlock "Multiport\nSwitch"
DstPort 1
}
}
Line {
SrcBlock "X"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -25; 125, 0]
Branch {
Points [0, 125]
DstBlock "Multiport\nSwitch1"
DstPort 4
}
Branch {
DstBlock "Multiport\nSwitch"
DstPort 6
}
}
Branch {
DstBlock " "
DstPort 1
}
}
Line {
SrcBlock "Y"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -20; 100, 0]
Branch {
Points [0, 45]
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Branch {
Points [0, -110]
DstBlock "Multiport\nSwitch"
DstPort 3
}
}
Branch {
DstBlock " "
DstPort 1
}
}
Line {
SrcBlock "Z"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -20; 90, 0]
Branch {
Points [0, 45]
DstBlock "Multiport\nSwitch1"
DstPort 5
}
Branch {
Points [0, -175]
DstBlock "Multiport\nSwitch"
DstPort 2
}
}
Branch {
DstBlock " "
DstPort 1
}
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0]
Branch {
Points [0, 55]
DstBlock "Multiport\nSwitch1"
DstPort 7
}
Branch {
Points [0, -155]
DstBlock "Multiport\nSwitch"
DstPort 4
}
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0; 50, 0]
Branch {
Points [0, -50]
DstBlock "Multiport\nSwitch"
DstPort 7
}
Branch {
Points [0, 85]
DstBlock "Multiport\nSwitch1"
DstPort 6
}
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -45]
DstBlock "Multiport\nSwitch"
DstPort 5
}
Branch {
Points [0, 85]
DstBlock "Multiport\nSwitch1"
DstPort 3
}
}
Line {
SrcBlock "Multiport\nSwitch"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -