📄 estimador.mdl
字号:
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "iq_smith"
Position [30, 163, 60, 177]
Port "7"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [280, 125, 325, 165]
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
UpperSaturationLimit "sqrt(2/3)*750"
LowerSaturationLimit "-sqrt(2/3)*750"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain"
Position [200, 131, 225, 159]
Gain "1/kip"
}
Block {
BlockType Gain
Name "Gain1"
Position [365, 61, 400, 89]
Gain "kp"
}
Block {
BlockType Gain
Name "Gain2"
Position [315, 246, 340, 274]
Gain "L/2"
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [225, 243, 240, 272]
ShowName off
Inputs "**"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [95, 65, 115, 85]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [325, 65, 345, 85]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [440, 71, 460, 99]
ShowName off
Inputs "+++"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [95, 220, 115, 240]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [140, 65, 160, 85]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Outport
Name "uq_c"
Position [500, 78, 530, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "iq_c"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "iq"
SrcPort 1
Points [40, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
Points [5, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [65, 0; 0, -175]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "eq"
SrcPort 1
Points [360, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "uq_c"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "id_c"
SrcPort 1
Points [40, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [90, 0]
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "iq_smith"
SrcPort 1
Points [85, 0]
DstBlock "Sum4"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "udq"
Position [550, 123, 580, 137]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Unit Delay3"
DstPort 1
}
Line {
SrcBlock "edq"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "q-axis current\ncontroller"
SrcPort 1
Points [30, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "d-axis current\ncontroller"
SrcPort 1
Points [30, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "idq_c"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "idq"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "idq_smith"
SrcPort 1
DstBlock "Demux3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [85, 0]
Branch {
DstBlock "d-axis current\ncontroller"
DstPort 1
}
Branch {
Points [0, 160]
DstBlock "q-axis current\ncontroller"
DstPort 6
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [45, 0]
Branch {
Points [0, -35]
DstBlock "d-axis current\ncontroller"
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "q-axis current\ncontroller"
DstPort 3
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [55, 0]
Branch {
Points [0, -45]
DstBlock "d-axis current\ncontroller"
DstPort 3
}
Branch {
Points [0, 55]
DstBlock "q-axis current\ncontroller"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0; 0, -85]
Branch {
Points [0, -110]
DstBlock "d-axis current\ncontroller"
DstPort 4
}
Branch {
DstBlock "q-axis current\ncontroller"
DstPort 4
}
}
Line {
SrcBlock "Demux3"
SrcPort 1
Points [75, 0; 0, -35]
DstBlock "d-axis current\ncontroller"
DstPort 7
}
Line {
SrcBlock "Demux3"
SrcPort 2
Points [75, 0; 0, 55]
DstBlock "q-axis current\ncontroller"
DstPort 7
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [35, 0; 0, 30]
Branch {
Points [0, 60]
DstBlock "q-axis current\ncontroller"
DstPort 1
}
Branch {
DstBlock "d-axis current\ncontroller"
DstPort 6
}
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [25, 0; 0, -115]
DstBlock "d-axis current\ncontroller"
DstPort 5
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [35, 0; 0, -25]
DstBlock "q-axis current\ncontroller"
DstPort 5
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "udq"
DstPort 1
}
Line {
SrcBlock "Unit Delay3"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Controlador PI2"
Ports [4, 1]
Position [580, 318, 640, 392]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Controlador PI2"
Location [29, 82, 825, 564]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "idq_c"
Position [40, 48, 70, 62]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "idq"
Position [40, 93, 70, 107]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "idq_smith"
Position [40, 143, 70, 157]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "edq"
Position [40, 203, 70, 217]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [175, 261, 205, 279]
Value "2*pi*50"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [170, 35, 175, 75]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [170, 80, 175, 120]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 2]
Position [170, 190, 175, 230]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux3"
Ports [1, 2]
Position [170, 130, 175, 170]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [385, 73, 390, 182]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType UnitDelay
Name "Unit Delay3"
Position [430, 120, 450, 140]
NamePlacement "alternate"
ShowName off
SampleTime "Ts"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [480, 111, 515, 149]
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "d-axis current\ncontroller"
Ports [7, 1]
Position [290, 33, 335, 117]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "d-axis current\ncontroller"
Location [78, 82, 874, 554]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
P
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -