Relay X1

![]() | ![]() | ![]() | ![]() |
Single Port Relay Controller
- Overview
- Drivers
- Samples
- Projects
Single Port Relay Controller
Key features • Screw terminal | Resources |
Function | Description |
---|---|
Set(value) | Value 1: On, 0: Off |
DVer() | This 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.
##### Driver Code Starts Here ###
fn Set(v)
dwrite(19, v)
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!!
while 1
Set(1)
wait(1000)
set(0)
wait(2000)
wend
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
Relay X1 | GDL-ACRELAYX1-A | $00.00 |