📄 svpwm.mdl
字号:
Name "3/2"
Position [265, 250, 295, 280]
BackgroundColor "yellow"
Gain "3/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [385, 257, 415, 288]
BackgroundColor "yellow"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [375, 337, 405, 368]
BackgroundColor "yellow"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [610, 216, 615, 254]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Divide"
Ports [3, 1]
Position [550, 219, 580, 251]
BackgroundColor "yellow"
Inputs "**/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [460, 216, 465, 254]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Gain
Name "sqrt(3)"
Position [315, 210, 345, 240]
BackgroundColor "yellow"
Gain "sqrt(3)"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "sqrt(3)/2"
Position [265, 305, 295, 335]
BackgroundColor "yellow"
Gain "sqrt(3)/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "X"
Position [680, 203, 710, 217]
ForegroundColor "lightBlue"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Y"
Position [680, 228, 710, 242]
ForegroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Z"
Position [680, 253, 710, 267]
ForegroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "X"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Y"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [20, 0; 0, 15]
DstBlock "Z"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "T"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "U-DC"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Divide"
DstPort 3
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "sqrt(3)"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, -40]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [20, 0; 0, -110]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Vsbeta"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -95]
DstBlock "sqrt(3)"
DstPort 1
}
Branch {
DstBlock "sqrt(3)/2"
DstPort 1
}
}
Line {
SrcBlock "Vsalfa"
SrcPort 1
DstBlock "3/2"
DstPort 1
}
Line {
SrcBlock "3/2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Add"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "sqrt(3)/2"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -40]
DstBlock "Add"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "Add1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "compare_time_generator"
Ports [4, 3]
Position [520, 120, 585, 320]
BackgroundColor "yellow"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "compare_time_generator"
Location [2, 82, 1014, 717]
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 [25, 48, 55, 62]
ForegroundColor "lightBlue"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T1"
Position [25, 93, 55, 107]
ForegroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T2"
Position [25, 133, 55, 147]
ForegroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "N"
Position [145, 33, 175, 47]
ForegroundColor "lightBlue"
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Scope
Name "Scope1"
Ports [5]
Position [310, 181, 360, 279]
BackgroundColor "green"
Floating off
Location [5, 54, 1029, 737]
Open off
NumInputPorts "5"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5~-5"
YMax "5~5~5~5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [3, 3]
Position [110, 51, 155, 149]
BackgroundColor "yellow"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem3"
Location [418, 203, 983, 420]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "T"
Position [30, 18, 60, 32]
ForegroundColor "lightBlue"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T1"
Position [30, 78, 60, 92]
ForegroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "T2"
Position [30, 148, 60, 162]
ForegroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "1/1"
Position [170, 70, 200, 100]
BackgroundColor "yellow"
Gain "1/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1/2"
Position [170, 140, 200, 170]
BackgroundColor "yellow"
Gain "1/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "1/4"
Position [240, 20, 270, 50]
BackgroundColor "yellow"
Gain "1/4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [295, 77, 325, 108]
BackgroundColor "yellow"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [3, 1]
Position [170, 19, 200, 51]
BackgroundColor "yellow"
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [355, 132, 385, 163]
BackgroundColor "yellow"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Ta"
Position [430, 28, 460, 42]
ForegroundColor "lightBlue"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Tb"
Position [435, 88, 465, 102]
ForegroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Tc"
Position [435, 143, 465, 157]
ForegroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "T"
SrcPort 1
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "T2"
SrcPort 1
Points [60, 0]
Branch {
Points [0, -110]
DstBlock "Add1"
DstPort 3
}
Branch {
DstBlock "1/2"
DstPort 1
}
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "1/4"
DstPort 1
}
Line {
SrcBlock "1/4"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Ta"
DstPort 1
}
Branch {
DstBlock "Add"
DstPort 1
}
}
Line {
SrcBlock "T1"
SrcPort 1
Points [45, 0]
Branch {
Points [0, -50]
DstBlock "Add1"
DstPort 2
}
Branch {
DstBlock "1/1"
DstPort 1
}
}
Line {
SrcBlock "Add"
SrcPort 1
Points [5, 0]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -