Pause
Purpose: pause the script and show a message, waiting for the operator to do something (connect a fixture, for example) before carrying on.

Message is the text the operator sees (optional, can include ${variable}).
JSON
json
{ "pause": { "message": "Connect the fixture, then press Resume" } }
{ "pause": "Connect the fixture, then press Resume" }
{ "pause": true }While running
While paused, a yellow banner at the top shows the message and the current variables:

| Button | What it does |
|---|---|
| Resume F6 | Carry on |
| Step | Run the next step, then pause again |
| Stop | Stop this run |
Result
Pause is PASS, and the Actual column shows how long it was paused (paused 25.5 s).

Notes
- When run from the command line with
--run-scriptthere is no operator, so Pause does not pause and carries straight on (Actual showsnot paused (no operator)). - When the operator needs to answer PASS/FAIL or enter data, use Ask.
Download the sample script
Sample script
Before running it, start a Slave window on 127.0.0.1:502 and click Listen, then open the script with Open JSON in Script mode and click Run. See How to use the examples.
