Threaded script functions

In this section

event.wait(timeout)

event.wait_input_change ([timeout])

event.wait_input_should_exit([timeout])

event.wait_should_exit(timeout)

See also

Predefined Variables

Input and output control functions

Serial port control functions

Support for Python modules

event.wait(timeout)

Pause the script for a specified period of time before continuing.

Note: It is not possible to pause the script indefinitely.

timeout

Time in milliseconds for the routine to wait before continuing.

If a project role is stopped while waiting in this routine, the script will exit immediately at this line and no further processing will occur.

This argument is required.

If you specify zero, the script will continue immediately.