📄 machine.mdl
字号:
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract1"
Ports [2, 1]
Position [485, 241, 515, 299]
Inputs "--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract2"
Ports [2, 1]
Position [490, 336, 520, 394]
Inputs "--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract3"
Ports [2, 1]
Position [490, 416, 520, 474]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Trigonometry
Name "cos"
Ports [1, 1]
Position [165, 30, 195, 60]
Operator "cos"
}
Block {
BlockType Trigonometry
Name "sin"
Ports [1, 1]
Position [160, 95, 190, 125]
}
Block {
BlockType Outport
Name "dq"
Position [960, 373, 990, 387]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [0, -15; 15, 0; 0, -15]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -30]
DstBlock "cos"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "sin"
DstPort 1
}
}
Line {
SrcBlock "cos"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [10, 0]
Branch {
Points [0, 265]
DstBlock "Product4"
DstPort 2
}
Branch {
Points [15, 0]
Branch {
Points [30, 0]
Branch {
Points [310, 0]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 145]
DstBlock "Product1"
DstPort 1
}
}
Branch {
Points [0, 300]
DstBlock "Product5"
DstPort 1
}
}
}
Branch {
Points [0, 400]
DstBlock "Product7"
DstPort 1
}
}
Line {
SrcBlock "sin"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 300]
DstBlock "Product6"
DstPort 2
}
Branch {
Points [40, 0]
Branch {
Points [10, 0]
Branch {
Points [0, 35]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [30, 0]
Branch {
Points [295, 0]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 135]
DstBlock "Product3"
DstPort 1
}
}
}
Branch {
Points [0, 395]
DstBlock "Product8"
DstPort 2
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [40, 0]
Branch {
Points [70, 0]
Branch {
Points [135, 0]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Product3"
DstPort 2
}
}
Branch {
Points [0, 150]
DstBlock "Product5"
DstPort 2
}
}
Branch {
Points [0, 280]
DstBlock "Product8"
DstPort 1
}
}
Line {
SrcBlock "K2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [40, 0]
Branch {
Points [65, 0]
Branch {
Points [100, 0]
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 125]
DstBlock "Product4"
DstPort 1
}
}
Branch {
Points [0, 225]
DstBlock "Product6"
DstPort 1
}
}
Branch {
Points [0, 290]
DstBlock "Product7"
DstPort 2
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [60, 0]
DstBlock "Subtract"
DstPort 1
}
Line {
SrcBlock "Subtract"
SrcPort 1
Points [60, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0; 0, -10]
DstBlock "Subtract"
DstPort 2
}
Line {
SrcBlock "Subtract1"
SrcPort 1
Points [60, 0]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Subtract1"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [60, 0; 0, -20]
DstBlock "Subtract1"
DstPort 2
}
Line {
SrcBlock "Subtract2"
SrcPort 1
Points [25, 0; 0, 5]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Product5"
SrcPort 1
Points [60, 0; 0, -5]
DstBlock "Subtract2"
DstPort 1
}
Line {
SrcBlock "Product6"
SrcPort 1
Points [60, 0; 0, -25]
DstBlock "Subtract2"
DstPort 2
}
Line {
SrcBlock "Subtract3"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "Product7"
SrcPort 1
Points [55, 0; 0, -25]
DstBlock "Subtract3"
DstPort 1
}
Line {
SrcBlock "Product8"
SrcPort 1
Points [55, 0; 0, -40]
DstBlock "Subtract3"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [5, 0; 0, -5]
Branch {
Points [0, -55]
DstBlock "Fcn2"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [0, 20]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [0, -25]
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [0, 115; -45, 0]
DstBlock "dq"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [50, 0; 0, 85]
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "abc"
SrcPort 1
Points [40, 0; 0, 25]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [0, 75; -5, 0]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [5, 0; 0, 105; -10, 0]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [5, 0; 0, 135; -10, 0]
DstBlock "Mux1"
DstPort 1
}
Annotation {
Name "cos(wt-120)"
Position [544, 162]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "sin(wt-120)"
Position [555, 260]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "cos(wt+120)"
Position [553, 355]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "sin(wt+120)"
Position [552, 431]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType SubSystem
Name "threetotwo1"
Ports [2, 1]
Position [160, 150, 200, 210]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "threetotwo1"
Location [-37, 138, 975, 677]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "abc"
Position [610, 43, 640, 57]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "w"
Position [25, 58, 55, 72]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Clock
Name "Clock"
Position [25, 100, 45, 120]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [75, 195, 105, 225]
Value "0.5"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [710, 26, 715, 124]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [780, 278, 965, 302]
ShowName off
Expr "sqrt(2/3)*((-1*u[1]*u[5])+(-1*u[2]*u[7]"
")+(-1*u[3]*u[9]))"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [780, 203, 965, 227]
ShowName off
Expr "sqrt(2/3)*((u[1]*u[4])+(u[2]*u[6])+(u[3"
"]*u[8]))"
}
Block {
BlockType Constant
Name "K2"
Position [75, 159, 125, 181]
ShowName off
Value "sqrt(3)/2"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [595, 27, 600, 488]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1]
Position [730, 191, 735, 364]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [980, 219, 985, 281]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [85, 57, 115, 88]
InputSameDT off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -