Modify the parameterization of C2 to be a tunable gain and examine the result.
G = tunableGain('C2',5);
setBlockParam(st,'C2',G);
getBlockParam(st,'C2')
ans =
Parametric gain "C2" with 1 outputs, 1 inputs, and 1 tunable parameters.
Type "ss(ans)" to see the current value and "get(ans)" to see all properties.
Revert the parameterization of C2 back to the default PI controller and examine the
result.
setBlockParam(st,'C2');
getBlockParam(st,'C2')
ans =
Parametric continuous-time PID controller "C2" 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.
Input Arguments
st — Interface for tuning control systems modeled in Simulink
slTuner interface
Interface for tuning control systems modeled in Simulink, specified as an slTuner
interface.
setBlockParam