How to calculate the gain value Kp and Ki for the current controller of Matrix converter?
32 views (last 30 days)
Show older comments
0 Comments
Answers (1)
Aman Vyas
on 24 Dec 2020
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
See Also
Categories
Find more on PID Controller Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!