Slider Properties

Graphic instrument to set parameter values

Use the Slider instrument to set the approximate value of real-valued data, such as voltage or current. When you bind a Slider instrument to a parameter with enum type data values, the enumerated values appear as units on the instrument scale. The enumerated values are visible when you run the instrument panel. For more information, see Add Instrument Panel to Tank Model.

To access a dialog box containing key instrument or layout element properties, select the item. In the top, right corner, click the Tasks button .

To access the complete Properties list for an instrument or layout element, in the instrument panel, select the item. In the Properties list, to access a dialog box for a particular property group, click the group. To the right of the group, click the continuation button .

These properties represent a selection from the available properties. For more properties, see Graphical Properties.

Instrument

expand all

Open a dialog box to configure the scale display.

To set properties of the automatic display generator, under the Generator tab, click the Auto tab.

If MinorCount is even, space the minor ticks equally around the center tick. If MinorCount is odd, replace the center tick with the middle tick.

If True, the top and bottom ticks are constrained to be major ticks with min/max values defined by Min and Span.

The number of labels is span / (desired increment + 1). This setting has no effect if the required labels do not fit in the space available in the graphic.

To set text formatting properties, click the Text Formatting tab.

Open a text editor and construct text to add to number. By default, the units text appears to the right of the number. If Style is Prefix, the text appears to the left of the number.

Specify range of control scale. The property Max is calculated from Min and Span.

By default, the instrument displays values that increase in the customary directions: Clockwise, left to right, or down to up, depending on the instrument. If value is True, reverse the scale so that the values increase in the opposite directions: Counterclockwise, right to left, or up to down.

Scale type, one of:

  • Linear — Monotonic increasing or decreasing

  • Log10 — Log base 10 increasing or decreasing

  • SplitLinearLog10 — Monotonic increasing or decreasing in one part, log base 10 in the other part

Design

expand all

When True, prevents accidental changes in size or location of the instrument instance.

Bindings

expand all

Specify the hierarchical name of the signal or parameter that is bound to the instrument.

Specify the type of object to which the instrument is bound. The Signal binding is visible only for display instruments.

Bind an instrument instance to a particular target computer. You can bind different instruments in the same instrument panel to different target computers.

Introduced in R2014a