How to calculate the gain value Kp and Ki for the current controller of Matrix converter?

31 次查看(过去 30 天)

回答(1 个)

Aman Vyas
Aman Vyas 2020-12-24
Hi,
Basically ki, kp and kd values are specified by the user in the PI, PID controller. So based on that your system will work as you have to model the values of kp, ki and kd. Also if you wish to obtain the values you can try the below script by putting in your transfer function.
s=tf('s');
PID= %YOUR TRANSFER FUNCTION
syms Kp Kd Ki N
NPID_num=[Kp+N*Kd Kp*N+Ki N*Ki];
NPID_den=[1 N 0];
eqn1=PID.Numerator{1}(1)==NPID_num(1);
eqn2=PID.Numerator{1}(2)==NPID_num(2);
eqn3=PID.Numerator{1}(3)==NPID_num(3);
eqn4=PID.Denominator{1}(2)==NPID_den(2);
solx=vpasolve([eqn1 eqn2 eqn3 eqn4]);
Kp=subs(Kp,solx.Kp)
Kd=subs(Kd,solx.Kd)
Ki=subs(Ki,solx.Ki)
N=subs(N,solx.N)
Hope it helps !
Aman

类别

Help CenterFile Exchange 中查找有关 PID Controller Tuning 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by