Simulink Control Design™ - MathWorks

(Tuis.) #1

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 block path that uniquely identifies the
block among the other tuned blocks of st.


Example: blk = 'scdcascade/C1', blk = "C1"


Output Arguments


value — Current value of block parameterization
numeric LTI model


Current value of block parameterization, returned as a numeric LTI model (Control
System Toolbox), such as pid, ss, or tf.


When the tuning results have not been applied to the Simulink model using
writeBlockValue, the value returned by getBlockValue can differ from the actual
Simulink block value.


NoteUse writeBlockValue to align the block parameterization values with the actual
block values in the Simulink model.


S — Current values of all block parameterizations
structure


Current values of all block parameterizations in st, returned as a structure. The names of
the fields in S are the names of the tuned blocks in st, and the field values are the
corresponding numeric LTI models.


You can use this structure to transfer the tuned values from one slTuner interface to
another slTuner interface with the same tuned block parameterizations.


S = getBlockValue(st1);
setBlockValue(st2,S);


getBlockValue
Free download pdf