Simulink Control Design™ - MathWorks

(Tuis.) #1

Create an slTuner interface for the Simulink model, and add a block to the list of tuned
blocks of the interface.


st = slTuner(mdl,'C1');
addBlock(st,'C2');


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 | cell array of character vectors | string array


Block to add to the list of tuned blocks on page 15-389 for st, specified as:



  • Character vector or string — Block path. You can specify the full block path or a
    partial path. The partial path must match the end of the full block path and
    unambiguously identify the block to add. For example, you can refer to a block by its
    name, provided the block name appears only once in the Simulink model.


For example, blk = 'scdcascade/C1'.


  • Cell array of character vectors or string array — Multiple block paths.


For example, blk = {'scdcascade/C1','scdcascade/C2'}.

Definitions


Tuned Block


Tuned blocks, used by the slTuner interface, identify blocks in a Simulink model whose
parameters are to be tuned to satisfy tuning goals. You can tune most Simulink blocks
that represent linear elements such as gains, transfer functions, or state-space models.
(For the complete list of blocks that support tuning, see “How Tuned Simulink Blocks Are
Parameterized” on page 10-36). You can also tune more complex blocks such as


addBlock
Free download pdf