Simulink Control Design™ - MathWorks

(Tuis.) #1
getBlockValue(st,'C1')

ans =

Kp = 4.2

Name: C1
P-only controller.

Examine the 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.

Observe that although the current block value is a P-only controller, the block
parameterization continues to be a PI-controller.

Set Value of Multiple Tuned Block Parameterizations

Create an slTuner interface.

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

15 Alphabetical List

Free download pdf