Slider

![]() | ![]() |
Slider Module
- Overview
- Drivers
- Samples
- Projects
Slider Module
Key features • Slider switch | Resources |
Function | Description |
---|---|
Slider() | Returns value from 0 to 100 |
DVer() | Returns the driver version |
The Code!
Modules ship with this script preloaded. Use Console to reload or modify the drivers. Additionally, some languages, such as Python, include DUELink.Engine.Record()
for recording scripts directly from the host.
########## Slider Driver ###########
fn Slider()
return trunc(vread(3)/readvcc()*100)
fend
fn DVer()
return 0.1
fend
##### User Code Starts Here #####
- Script
- Python
- JavaScript
Use Console to modify the default driver by adding this sample.
# Append this code at the bottom of the script, right after the driver.
# You MUST keep the driver code!!
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
Slider | GDL-HISLIDER-B | $00.00 |