Simulink Control Design™ - MathWorks

(Tuis.) #1

KpTuned =


1


Query Value of All Tuned Elements in slTuner Interface with Custom
Parameterizations


Create an slTuner interface for the scdcascade model.


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


Set a custom parameterization for tuned block C1.


C1CustParam = realp('Kp',1) + tf(1,[1 0]) * realp('Ki',1);
setBlockParam(st,'C1',C1CustParam);


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 values of the parameterizations of
all the tuned blocks in st.


S = getTunedValue(st)


getTunedValue
Free download pdf