Main Content

Slider

Display slider widget on device screen

  • Slider block

Libraries:
Simulink Support Package for Apple iOS Devices / User Interface

Description

The Slider block displays 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 the slider to the left position, the Slider block outputs the value of the Minimum parameter. When you slide the slider to the rightmost position, the Slider block outputs the value of Maximum parameter.

Note

During simulation with no hardware connected, this block outputs the initial state.

Ports

Output

expand all

Slider value, returned as a numeric scalar. This value corresponding to the position of the slider.

Data Types: single

Parameters

expand all

Specify the minimum value that the slider widget can output.

Specify the maximum value that the slider widget can output.

Specify the initial value the slider widget outputs when the Apple iOS app is deployed on the device.

Specify the smallest discrete change that the slider widget can output.

Specify a discrete time interval, in seconds, at which the block reads the slider position and outputs the data.

Note

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

Version History

Introduced in R2015a