Documentation

Knob

Tune parameter value with dial

  • Library:
  • Simulink / Dashboard

Description

The Knob block tunes the value of the connected block parameter to during simulation. For example, you can connect the Knob block to a Gain block in your model and adjust its value during simulation. You can modify the range of the Knob block's scale to fit your data. Use the Knob block with other Dashboard blocks to create an interactive dashboard to control your model.

Connection

Dashboard block controls connect to variables and block parameters. To connect a Dashboard block to a variable or parameter, use the Connection table in the block's parameters.

  1. Double-click the block.

  2. Populate the Connection table by selecting blocks of interest in your model.

  3. Mark the option button next to the parameter or variable you want to adjust during simulation.

  4. Click Apply.

Limitations

  • You cannot save the block connections or properties in model files that use the MDL format.

    To save connections and properties, save the model file in the SLX format.

  • Dashboard blocks can only connect to real scalar signals.

  • Dashboard blocks cannot connect to blocks that are commented out.

  • Dashboard blocks cannot connect to signals inside reference models.

  • Parameters specified by indexing a variable array do not appear in the Connection table. For example, a block parameter defined using the variable engine(1) does not appear in the table.

    To access the parameter in the Connection table, assign the indexed value to a scalar variable, such as engine_1. Then, use the scalar variable to define the block parameter.

Parameters

expand all

Select the block parameter to control using the Connection table. To open the dialog box, double-click the block. Then, populate the Connection table by selecting a block in your model. Select the variable parameter you want to control, and click Apply.

Note

To see workspace variables in the connection table, update the model diagram with Ctrl+D.

Type of scale displayed on the control. Linear specifies a linear scale, and Log specifies a logarithmic scale.

A finite, real, double, scalar value specifying the minimum tick mark value for the scale. The minimum must be less than the value entered for the maximum.

A finite, real, double, scalar value specifying the maximum tick mark value for the scale. The maximum must be greater than the value entered for the minimum.

A finite, real, positive, integer, scalar value specifying the interval of major tick marks on the scale. When set to auto, the block automatically adjusts the tick interval based on the minimum and maximum values.

Position of the block label. When the block is connected to a signal, the label is the name of the connected signal. When the block is not connected, the label is the instructional text.

Introduced in R2015a

Was this topic helpful?