Simulink Control Design™ - MathWorks

(Tuis.) #1
After verifying tuning goals, extract controller parameters from the tuned model ST1. Use
tuned PI controller parameters to update the workspace parameters for the PI controller
blocks.

Cd = getBlockValue(ST1,'Cd');
Cq = getBlockValue(ST1,'Cq');
Cspeed = getBlockValue(ST1,'Cspeed');
paramCurrentControlPD = Cd.Kp;
paramCurrentControlID = Cd.Ki;
paramCurrentControlPQ = Cq.Kp;
paramCurrentControlIQ = Cq.Ki;
paramVelocityControlTuneP = Cspeed.Kp;
paramVelocityControlTuneI = Cspeed.Ki;

13 Control System Tuning Examples

Free download pdf