📄 pll_dsc0.mdl
字号:
Ports [2, 1]
Position [315, 65, 335, 85]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType SubSystem
Name "abc -> dqp"
Ports [2, 2]
Position [120, 70, 180, 130]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "abc -> dqp"
Location [2, 86, 1270, 976]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "eabc"
Position [25, 73, 55, 87]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "theta"
Position [450, 155, 480, 170]
Orientation "up"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [375, 72, 405, 103]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "Fcn"
Position [210, 107, 335, 133]
Expr "sqrt(u[1]^2+u[2]^2)"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [535, 60, 685, 90]
Expr "u[1]*cos(u[3])+u[2]*sin(u[3])"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [535, 110, 685, 140]
Expr "-u[1]*sin(u[3])+u[2]*cos(u[3])"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [500, 81, 505, 119]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [725, 81, 730, 119]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [460, 206, 490, 239]
Floating off
Location [1, 56, 1273, 985]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-400~-1.5"
YMax "400~1.5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Gain
Name "Secuencia\npositiva1"
Position [100, 65, 130, 95]
ShowName off
Gain "sqrt(2/3)"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "Secuencia\npositiva2"
Position [150, 65, 180, 95]
ShowName off
Gain "[1 -1/2 -1/2; 0 sqrt(3)/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Outport
Name "edq_p"
Position [755, 93, 785, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "emod"
Position [750, 178, 780, 192]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "eabc"
SrcPort 1
DstBlock "Secuencia\npositiva1"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Fcn3"
DstPort 1
}
Branch {
DstBlock "Fcn4"
DstPort 1
}
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [10, 0; 0, 15]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Fcn4"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Secuencia\npositiva1"
SrcPort 1
DstBlock "Secuencia\npositiva2"
DstPort 1
}
Line {
SrcBlock "theta"
SrcPort 1
Points [0, -40]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux5"
SrcPort 1
Points [0, 0]
DstBlock "edq_p"
DstPort 1
}
Line {
SrcBlock "Secuencia\npositiva2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Divide"
DstPort 1
}
Branch {
Points [0, 40]
Branch {
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Scope"
DstPort 1
}
}
}
Line {
SrcBlock "Divide"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, 140]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -25]
DstBlock "Divide"
DstPort 2
}
Branch {
Points [0, 65]
DstBlock "emod"
DstPort 1
}
}
Annotation {
Name "Transformacion invariante\nen potencia"
Position [122, 37]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Outport
Name "wt"
Position [650, 88, 680, 102]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vdqpos"
Position [365, 208, 395, 222]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "W"
Labels [0, 1]
SrcBlock "Discrete PI Controller"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Branch {
Points [0, 160]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Discrete \n2nd-Order\nFilter"
DstPort 1
}
}
}
Line {
SrcBlock "Constant4"
SrcPort 1
Points [0, 0]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Vabc "
SrcPort 1
Points [0, 0]
DstBlock "abc -> dqp"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
Points [0, 0]
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "wt"
DstPort 1
}
Branch {
Points [0, 85; -515, 0; 0, -65]
DstBlock "abc -> dqp"
DstPort 2
}
}
Line {
SrcBlock "abc -> dqp"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Demux"
DstPort 1
}
Branch {
Points [0, 120]
Branch {
Points [0, 0]
DstBlock "Divide"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Scope"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Discrete PI Controller"
DstPort 1
}
Line {
SrcBlock "Divide"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Vdqpos"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "abc -> dqp"
SrcPort 2
Points [15, 0; 0, 105]
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "Discrete \n2nd-Order\nFilter"
SrcPort 1
Points [55, 0; 0, -25]
DstBlock "Scope1"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "PLL_DSC discreto 1"
Ports [1, 4]
Position [140, 213, 205, 322]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "PLL_DSC discreto 1"
Location [2, 86, 1014, 726]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc "
Position [20, 108, 50, 122]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Constant
Name "Constant1"
Position [235, 148, 270, 172]
NamePlacement "alternate"
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant4"
Position [445, 133, 480, 157]
NamePlacement "alternate"
ShowName off
Value "2*pi"
}
Block {
BlockType SubSystem
Name "DSC"
Ports [2, 2]
Position [95, 100, 155, 160]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "DSC"
Location [57, 86, 842, 467]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "eabc"
Position [25, 163, 55, 177]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "theta"
Position [425, 320, 455, 335]
Orientation "up"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [505, 230, 655, 260]
Expr "u[1]*cos(u[3])-u[2]*sin(u[3])"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [505, 280, 655, 310]
Expr "u[1]*sin(u[3])+u[2]*cos(u[3])"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [510, 50, 660, 80]
Expr "u[1]*cos(u[3])+u[2]*sin(u[3])"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [510, 100, 660, 130]
Expr "-u[1]*sin(u[3])+u[2]*cos(u[3])"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [475, 71, 480, 109]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [470, 251, 475, 289]
ShowName off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -