📄 svpwm_pmsm_090312.mdl
字号:
Ports [2, 1]
Position [155, 33, 175, 57]
ShowName off
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [115, 28, 135, 52]
ShowName off
}
Block {
BlockType Gain
Name "d2r"
Position [70, 25, 100, 55]
Gain "pi/180"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "sin_out"
Position [195, 38, 225, 52]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "freq_in"
SrcPort 1
DstBlock "d2r"
DstPort 1
}
Line {
SrcBlock "d2r"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "amp_in"
SrcPort 1
Points [85, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "sin_out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "sin_phi_120"
Ports [3, 1]
Position [220, 148, 295, 192]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "sin_phi_120"
Location [2, 85, 294, 237]
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 "freq_in"
Position [20, 23, 50, 37]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "amp_in"
Position [20, 108, 50, 122]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "dir"
Position [20, 78, 50, 92]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 55, 45, 75]
ShowName off
Value "2*pi/3"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [200, 23, 220, 47]
ShowName off
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [95, 54, 120, 96]
ShowName off
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [125, 20, 145, 40]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [160, 18, 180, 42]
ShowName off
}
Block {
BlockType Gain
Name "d2r"
Position [70, 15, 100, 45]
Gain "pi/180"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "sin_out"
Position [240, 28, 270, 42]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "dir"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "d2r"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "sin_out"
DstPort 1
}
Line {
SrcBlock "amp_in"
SrcPort 1
Points [130, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "freq_in"
SrcPort 1
DstBlock "d2r"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "sin_phi_240"
Ports [3, 1]
Position [220, 88, 295, 132]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "sin_phi_240"
Location [2, 85, 294, 237]
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 "freq_in"
Position [20, 23, 50, 37]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "amp_in"
Position [20, 108, 50, 122]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "dir"
Position [20, 78, 50, 92]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 55, 45, 75]
ShowName off
Value "-2*pi/3"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [200, 23, 220, 47]
ShowName off
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [95, 54, 120, 96]
ShowName off
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [125, 20, 145, 40]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [160, 18, 180, 42]
ShowName off
}
Block {
BlockType Gain
Name "d2r"
Position [70, 15, 100, 45]
Gain "pi/180"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "sin_out"
Position [240, 28, 270, 42]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "freq_in"
SrcPort 1
DstBlock "d2r"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "amp_in"
SrcPort 1
Points [130, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "sin_out"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "d2r"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "dir"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "Vabc"
Position [610, 103, 640, 117]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "sin_phi_0"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "sin_phi_240"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "sin_phi_120"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "sin_angle_generator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "sin_phi_0"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "sin_phi_240"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "sin_phi_120"
DstPort 1
}
}
}
Line {
SrcBlock "Freq_com"
SrcPort 1
DstBlock "sin_angle_generator"
DstPort 1
}
Line {
SrcBlock "Vcom"
SrcPort 1
Points [135, 0]
Branch {
DstBlock "sin_phi_240"
DstPort 2
}
Branch {
Points [0, -50]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -