Main Content

addBlock

Add block to list of tuned blocks for slTuner interface

Description

addBlock(st,blk) adds the block referenced by blk to the list of tuned blocks of the slTuner interface, st.

example

Examples

collapse all

Open the Simulink® model.

mdl = 'scdcascade';
open_system(mdl)

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

collapse all

Interface for tuning control systems modeled in Simulink, specified as an slTuner interface.

Block to add to the list of tuned blocks 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'}.

More About

collapse all

Version History

Introduced in R2014a