Skip to main content

Console

The DUELink online console console.duelink.com is an online tool designed to help in writing scripts.

DUELink Console

The console can be used to store/modify scripts using the internal engine's script Recording mode. It also has support for Immediate mode.

The Regions page has details on using the console with Regions.


Recording Mode

The console helps in recording, modifying, and executing scripts.

For a quick test, connect your module to a PC and then click the Connect button. By default the first module is selected as indicated by the number 1. If a different module in the chain is being used click the Sel to change.

Connect Button

Select one of the built-in Demo scripts, found in the top menu.

Demos

Click the Record button to send the script to the module's memory.

Record Button

You can now run the code by pressing the Play button!

Play Button

StatLED

tip

The module will automatically run a loaded script on power up.

You can use the Stop button to terminate a running program.

Stop Button

It is possible to read back a script from a module, using the List button.

List Button


Immediate Mode

The immediate text box sends and runs the code immediately on the DUELink hardware.

DUELink immediate window

Try StatLed(200,200,10) here to blink the STAT LED 10 times.

tip

A very powerful feature in DUELink is when a script is recorded that contains a function. That function can be called from the immediate window in the console. That same function can also be called from an interface, like from USB for example.

To help with troubleshooting, any returned output from a module will be directed to the Log Panel. For example, Print() function will output directly in this panel.

# Run this and observe the Log Panel
Print("This is where log outputs appear")

The Log Panel will show the output.

DUELink console output