Slider

Display slider widget

Description

Display a slider widget on the device screen.

The Slider block port outputs a single—precision value. The output value depends on the position of the slider along the length of the bar. When you slide to the left position, the slider outputs the value of the Minimum parameter. When you slide to the right-most position, the slider outputs the value of Maximum parameter.

Note

For simulations with no hardware connected, this block outputs the initial value.

Dialog Box

Minimum

The minimum value that the slider widget can output.

Initial value

The initial value and position of the slider when the app starts.

Maximum

The maximum value that the slider widget can output.

Resolution

The smallest discrete increment change possible in the output value.

Sample time

The frequency with which the slider value is read and output.

Smaller values for Sample time require the processor to complete the same number of instructions in less time, which can cause task overruns.

Introduced in R2015a