Simulink Control Design™ - MathWorks

(Tuis.) #1

Create a block value structure with field names that correspond to the tunable blocks in
st.


blockValues = getBlockValue(st);
blockValues.C1 = pid(0.2,0.1);
blockValues.C2 = pid(2.3);


Set the values of the parameterizations of the tunable blocks in st using the defined
structure.


setBlockValue(st,blockValues);


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.


blk — Block
character vector | string


Block in the list of tuned blocks for st, specified as a character vector or string. You can
specify the full block path or any portion of the path that uniquely identifies the block
among the other tuned blocks of st.


setBlockValue
Free download pdf