This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Display slider widget


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.


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

Dialog Box


The minimum value that the slider widget can output.

Initial value

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


The maximum value that the slider widget can output.


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