📄 svpwm.mdl
字号:
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [445, 367, 475, 398]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide"
Ports [3, 1]
Position [595, 154, 630, 206]
Inputs "**/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide1"
Ports [3, 1]
Position [595, 249, 630, 301]
Inputs "**/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [3, 1]
Position [595, 359, 630, 411]
Inputs "**/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [375, 165, 430, 195]
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 Gain
Name "Gain1"
Position [335, 248, 395, 282]
Gain "0.577"
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, 263, 710, 287]
Gain "1.5"
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, 373, 710, 397]
Gain "1.5"
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 Scope
Name "Scope"
Ports [3]
Position [845, 461, 875, 519]
Floating off
Location [5, 52, 1021, 729]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-0.0001~-0.0001~-0.0001"
YMax "0.0001~0.0001~0.0001"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Outport
Name "X"
Position [820, 173, 850, 187]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Y"
Position [825, 268, 855, 282]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Z"
Position [825, 378, 855, 392]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Divide"
SrcPort 1
Points [150, 0]
Branch {
DstBlock "X"
DstPort 1
}
Branch {
Points [0, 290]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [100, 0; 0, -85]
Branch {
DstBlock "Divide2"
DstPort 3
}
Branch {
Labels [1, 0]
Points [0, -110]
Branch {
DstBlock "Divide1"
DstPort 3
}
Branch {
Points [0, -95]
DstBlock "Divide"
DstPort 3
}
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "T"
SrcPort 1
Points [70, 0; 0, 50]
Branch {
DstBlock "Divide"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
DstBlock "Divide1"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Divide2"
DstPort 1
}
}
}
Line {
SrcBlock "Vbeta"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Divide1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Add"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Add1"
DstPort 1
}
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Divide2"
DstPort 2
}
Line {
SrcBlock "Valfa"
SrcPort 1
Points [95, 0]
Branch {
Points [0, -110]
DstBlock "Add"
DstPort 2
}
Branch {
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "Divide2"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Divide1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Y"
DstPort 1
}
Branch {
Points [0, 215]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Z"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Scope"
DstPort 3
}
}
Annotation {
Position [370, 102]
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [4, 2]
Position [495, 128, 550, 252]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem2"
Location [2, 83, 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 "X"
Position [175, 148, 205, 162]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Y"
Position [175, 253, 205, 267]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Z"
Position [175, 348, 205, 362]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "sector"
Position [175, 53, 205, 67]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain1"
Position [285, 180, 315, 210]
Gain "-1"
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 [285, 290, 315, 320]
Gain "-1"
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 [285, 386, 315, 414]
Gain "-1"
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 MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [540, 157, 575, 253]
Inputs "6"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -