Simulink Control Design™ - MathWorks

(Tuis.) #1

  • For a block parameterized by a genmat/genss model, M, the name of any Control
    Design Block listed in M.Blocks. For example, if the parameterization of the block is


a = realp('a',1);
C = tf(a,[1 a]);

then set var = 'a'.

Output Arguments


value — Current value of tuned variable
numeric scalar | numeric array | state-space model


Current value of tuned variable in st, returned as a numeric scalar or array or a state-
space model. When the tuning results have not been applied to the Simulink model using
writeBlockValue, the value returned by getTunedValue can differ from the 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 tuned variables
structure


Current values of all tuned variables in st, returned as a structure. The names of the
fields in S are the names of the tuned variables in st, and the field values are the
corresponding numeric scalars or arrays.


You can use this structure to transfer the tuned variable values from one slTuner
interface to another slTuner interface with the same tuned variables, as follows:


S = getTunedValue(st1);
setTunedValue(st2,S);


getTunedValue
Free download pdf