Simulink Control Design™ - MathWorks

(Tuis.) #1

m.Blocks.C.Kp.Value = 0.00085;
m.Blocks.C.Ki.Value = 0.01;
m.Blocks.a.Value = 5500;


After tuning, update the block parameterization values in st.


setTunedValue(st,m);


This is equivalent to setBlockValue(st,m.Blocks).


To validate the tuning result in Simulink, first update the Simulink model with the tuned
values.


writeBlockValue(st);


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.


var — Tuned variable
character vector | string


Tuned variable within st, specified as a character vector or string. A tuned variable is any
Control Design Block, such realp, tunableSS, or tunableGain, involved in the
parameterization of a tuned Simulink block, either directly or through a generalized
parametric model. To get a list of all tuned variables within st, use
getTunedValue(st).


var can refer to the following:



  • For a block parameterized by a Control Design Block, the name of the block. For
    example, if the parameterization of the block is


C = tunableSS('C')

then set var = 'C'.


  • 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


setTunedValue
Free download pdf