📄 pmsg_test_w.mdl
字号:
Name "VaIa_A1"
Ports [1]
Position [960, 464, 990, 516]
ForegroundColor "darkGreen"
Floating off
Location [5, 56, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.07000000000000001"
YMin "-450"
YMax "450"
SaveName "VaIa_A3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "Ts_Power"
}
Block {
BlockType SubSystem
Name "Vabc_A->Vdq1"
Ports [2, 1]
Position [205, 460, 245, 520]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Vabc_A->Vdq1"
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 "abc"
Position [125, 35, 145, 55]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Inport
Name "sin_cos"
Position [125, 90, 145, 110]
Port "2"
IconDisplay "Port number"
PortDimensions "2"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [170, 73, 175, 122]
ShowName off
Outputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "sin(wt)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "cos(wt)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Fcn
Name "Fcn1"
Position [695, 157, 885, 183]
ShowName off
Expr "2/3*((-u[1]*u[4])+(-u[2]*u[6])+(-u[3]*u"
"[8]))"
Port {
PortNumber 1
Name "Vq"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Fcn
Name "Fcn2"
Position [695, 88, 880, 112]
ShowName off
Expr "2/3*((u[1]*u[5])+(u[2]*u[7])+(u[3]*u[9]"
"))"
Port {
PortNumber 1
Name "Vd"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Fcn
Name "Fcn3"
Position [695, 222, 885, 248]
ShowName off
Expr "1/3*(u[1]+u[2]+u[3])"
}
Block {
BlockType Constant
Name "K1"
Position [125, 190, 150, 210]
ShowName off
Value "0.5"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "K2"
Position [120, 229, 170, 251]
ShowName off
Value "sqrt(3)/2"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [630, 101, 635, 179]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [920, 131, 925, 209]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [555, 118, 560, 352]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [290, 183, 320, 207]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [290, 223, 320, 247]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [285, 328, 315, 352]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [285, 288, 315, 312]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [285, 373, 315, 397]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [285, 403, 315, 427]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product6"
Ports [2, 1]
Position [285, 448, 315, 472]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product7"
Ports [2, 1]
Position [285, 478, 315, 502]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [340, 174, 360, 256]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "sin(wt-2pi/3)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [340, 279, 360, 361]
ShowName off
Inputs "-+"
Port {
PortNumber 1
Name "cos(wt-2pi/3)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [340, 372, 360, 428]
ShowName off
Inputs "-+"
Port {
PortNumber 1
Name "sin(wt+2pi/3)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [340, 445, 360, 505]
ShowName off
Inputs "--"
Port {
PortNumber 1
Name "cos(wt+2pi/3)"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Outport
Name "dq0"
Position [950, 160, 970, 180]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
Name "Vd"
FontSize 10
Labels [1, 1]
SrcBlock "Fcn2"
SrcPort 1
Points [20, 0]
DstBlock "Mux1"
DstPort 1
}
Line {
Name "Vq"
FontSize 10
Labels [1, 1]
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "dq0"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -40]
DstBlock "Fcn2"
DstPort 1
}
Branch {
Points [0, 30]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Fcn3"
DstPort 1
}
}
}
Line {
Name "cos(wt-2pi/3)"
FontSize 10
Labels [-1, 1]
SrcBlock "Sum1"
SrcPort 1
Points [15, 0; 0, -65]
DstBlock "Mux2"
DstPort 4
}
Line {
Name "sin(wt-2pi/3)"
FontSize 10
Labels [-1, 1]
SrcBlock "Sum"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "K2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 105]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 65]
Branch {
DstBlock "Product5"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Product7"
DstPort 1
}
}
}
}
Line {
SrcBlock "K1"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 95]
Branch {
DstBlock "Product3"
DstPort 1
}
Branch {
Points [0, 80]
Branch {
Points [0, 5]
DstBlock "Product4"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Product6"
DstPort 1
}
}
}
}
Line {
Name "sin(wt+2pi/3)"
FontSize 10
Labels [-1, 1]
SrcBlock "Sum2"
SrcPort 1
Points [35, 0; 0, -105]
DstBlock "Mux2"
DstPort 5
}
Line {
Name "cos(wt+2pi/3)"
FontSize 10
Labels [3, 0]
SrcBlock "Sum3"
SrcPort 1
Points [95, 0; 0, -140]
DstBlock "Mux2"
DstPort 6
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "sin(wt)"
FontSize 10
Labels [2, 0]
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 85, 0]
Branch {
Labels [-1, 1]
Points [185, 0; 0, 50]
DstBlock "Mux2"
DstPort 1
}
Branch {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -