Documentation Center

  • Trial Software
  • Product Updates

showTunable

Show value of parameterizations of tunable blocks of slTuner interface

Syntax

  • showTunable(st)

Description

showTunable(st) displays the values of the parameteric models associated with each tunable block in the slTuner interface, st.

Examples

expand all

Display Tunable Block Values

Create an slTuner interface for the scdcascade model, and add C1 and C2 as tuned blocks of the interface.

st = slTuner('scdcascade',{'C1','C2'});

Display the default values of the tuned blocks.

showTunable(st);
Block 1: scdcascade/C1 =
 
             1 
  Kp + Ki * ---
             s 

  with Kp = 0.158, Ki = 0.042
 
Name: C1
Continuous-time PI controller in parallel form.

-----------------------------------

Block 2: scdcascade/C2 =
 
             1 
  Kp + Ki * ---
             s 

  with Kp = 1.48, Ki = 4.76
 
Name: C2
Continuous-time PI controller in parallel form.

Input Arguments

expand all

st — Interface for tuning control systems modeled in Simulink®slTuner interface

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

More About

expand all

Tuned Blocks

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.) You can also tune more complex blocks such as SubSystem or S-Function blocks by specifying an equivalent tunable linear model.

Use commands such as systune and looptune to tune the parameters of tuned blocks.

You must specify tuned blocks (for example, C1 and C2) when you create an slTuner interface:

st = slTuner('scdcascade',{'C1','C2'})

You can modify the list of tuned blocks using addBlock and removeBlock. Use commands such as setBlockParam, getBlockValue, and writeBlockValue to interact with and manipulate tuned blocks.

See Also

| | |

Was this topic helpful?