How do I insert delays in scripts?


Sometimes you need a script to pause for a short time before executing the next step. A typical case is when you need to change the IP of a Helm device to target a different machine. A small delay is needed to allow the device to establish communication before you send other commands. Let’s look at an example…

Our example panel

media_1354021841170.png

Buttons CG1 and CG2 change the IP address of the Xpression_1 character generator.

Here’s the script

media_1354021957653.png

We need to add some delay after the SetIPAddress command to let the CG settle down.

Choose Root Panel device and Sleep action

media_1354022111524.png

Select Root Panel, Sleep.

Enter the number of ms to sleep

media_1354022186885.png

either type in or use the arrow buttons to set the sleep time (ms)

Click on Update and OK – Done!

media_1354022251931.png

Tagged with: , , ,
Posted in HELM, Scripting

Leave a Reply