The default parameterization is a tunable PI controller (tunablePID).
Reparameterize C1 as a proportional controller. Initialize the proportional gain to 4.2, and
assign the parameterization to the block.
G = tunableGain('C1',4.2);
setBlockParam(st,'C1',G);
Tuning commands, such as systune, now use this proportional controller
parameterization of the C1 block of st. The custom parameterization is compatible with
the default parameterization of the Simulink® block. Therefore, you can use
writeBlockValue to write the tuned values back to the block.
You can also use setBlockParam to set multiple block parameterizations at once,
without requiring multiple recompilations of the model. For example, reparameterize both
C1 and C2 as PID controllers.
C1PID = tunablePID('C1PID','PID');
C2PID = tunablePID('C2PID','PID');
setBlockParam(st,'C1',C1PID,'C2',C2PID);
Revert Parameterization of Tuned Block to Default
Create an slTuner interface for the scdcascade model.
open_system('scdcascade');
st = slTuner('scdcascade',{'C1','C2'});
15 Alphabetical List