Simulink Control Design™ - MathWorks

(Tuis.) #1

Examples


Set Parameterization of Tuned Block


Create an slTuner interface for the scdcascade model.


open_system('scdcascade');
st = slTuner('scdcascade',{'C1','C2'});


Both C1 and C2 are PI controllers. Examine the default parameterization of C1.


getBlockParam(st,'C1')


ans =


Parametric continuous-time PID controller "C1" with formula:


1
Kp + Ki * ---
s


and tunable parameters Kp, Ki.


Type "pid(ans)" to see the current value and "get(ans)" to see all properties.


setBlockParam
Free download pdf