📄 svpwm.mdl
字号:
Name "PWM generator"
Location [2, 74, 1014, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Ualfa"
Position [55, 173, 85, 187]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Ubeta"
Position [50, 288, 80, 302]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [910, 331, 915, 369]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [275, 276, 335, 354]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem"
Location [74, 110, 983, 669]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Ubeta"
Position [115, 133, 145, 147]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Ualfa"
Position [110, 263, 140, 277]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "1.732"
Position [225, 255, 270, 285]
Gain "1.732"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add"
Ports [3, 1]
Position [765, 199, 795, 291]
Inputs "+++"
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 "Add1"
Ports [2, 1]
Position [360, 311, 395, 364]
Inputs "--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [430, 55, 460, 85]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [430, 380, 460, 410]
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [665, 125, 695, 155]
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [670, 230, 700, 260]
Gain "2"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [670, 325, 700, 355]
Gain "4"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract"
Ports [2, 1]
Position [360, 179, 395, 226]
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [570, 114, 615, 166]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch2"
Position [570, 219, 615, 271]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch3"
Position [570, 314, 615, 366]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "sector"
Position [835, 238, 865, 252]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [35, 0; 0, -40]
Branch {
DstBlock "Switch3"
DstPort 3
}
Branch {
Points [0, -95]
Branch {
DstBlock "Switch2"
DstPort 3
}
Branch {
Points [0, -105]
DstBlock "Switch1"
DstPort 3
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [55, 0; 0, 55]
Branch {
DstBlock "Switch1"
DstPort 1
}
Branch {
Points [0, 105]
Branch {
Points [0, 95]
DstBlock "Switch3"
DstPort 1
}
Branch {
DstBlock "Switch2"
DstPort 1
}
}
}
Line {
SrcBlock "Switch3"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [20, 0; 0, 75]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [15, 0; 0, -65]
DstBlock "Add"
DstPort 3
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "sector"
DstPort 1
}
Line {
SrcBlock "Ualfa"
SrcPort 1
Points [0, 0]
DstBlock "1.732"
DstPort 1
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [0, 0]
DstBlock "Switch3"
DstPort 2
}
Line {
SrcBlock "Subtract"
SrcPort 1
Points [80, 0; 0, 40]
DstBlock "Switch2"
DstPort 2
}
Line {
SrcBlock "1.732"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, -55]
DstBlock "Subtract"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "Add1"
DstPort 1
}
}
Line {
SrcBlock "Ubeta"
SrcPort 1
Points [35, 0]
Branch {
Labels [1, 0]
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, 50]
Branch {
DstBlock "Subtract"
DstPort 1
}
Branch {
Points [0, 160]
DstBlock "Add1"
DstPort 2
}
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [4, 3]
Position [380, 105, 435, 225]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem1"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "T"
Position [430, 108, 460, 122]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Vbeta"
Position [250, 173, 280, 187]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Valfa"
Position [250, 383, 280, 397]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Vdc"
Position [430, 478, 460, 492]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [445, 257, 475, 288]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -