open_system('scdcascade');
st = slTuner('scdcascade',{'C1','C2'});
Set a custom parameterization for one of the tunable blocks.
C1CustParam = realp('Kp',1) + tf(1,[1 0]) * realp('Ki',1);
setBlockParam(st,'C1',C1CustParam);
These commands set the parameterization of the C1 controller block to a generalized
state-space (genss) model containing two tunable parameters, Ki and Kp.
Typically, you would use a tuning command such as systune to tune the values of the
parameters in the custom parameterization.
After tuning, use getTunedValue to query the tuned value of Ki.
KiTuned = getTunedValue(st,'Ki')
KiTuned =
1
To query the value of the tuned block as a whole, C1, use getBlockValue.
getTunedValue