Controls > Advanced Controls > Slider > Example: Slider
Example: Slider
1. On the Input/Output tab, in the Controls group, click Advanced > Slider.
2. Enter an output variable name for the Slider on the left side of the definition operator.
3. To define the item and its properties, right click it and select Edit. Then, switch to the Properties tab and edit the properties:
Orientation—Select Horizontal.
Ticks—Click the checkbox.
Points—Select Both.
Minimum, Maximum, Tick frequency, Line size, Page size—Enter a value. In this example, the values are, respectively: 20.0, 10.0, 6.0, 1.0, 2.0.
4. You can also select the Script Editor tab and edit the slider’s properties from the script.
5. Evaluate the value of the slider for different values.
* 
Copy this example to your Engineering Notebook worksheet to see the script that was used here in Jscript.
Click to copy this expression
Click to copy this expression
Click to copy this expression
6. The example above is in Jscript. Copy the following example to see the script in VBScript and Python.
VBScript
Click to copy this expression
Python
Click to copy this expression
Download another example of the slider control: Slider Example.
Was this helpful?