Pause script execution at run time
- Last UpdatedJul 23, 2024
- 1 minute read
By default, when WindowViewer is started, logic is running and synchronous scripts are executed. You can pause script execution at run time by halting logic. After pausing you can resume script execution.
Pause script execution at run time from the menu
-
On the Logic menu, select Halt Logic. The synchronous scripts stop running. Asynchronous scripts continue running but no new asynchronous scripts are started.
Pause script execution at run time with scripting
-
Write the value 0 to the discrete system tag $LogicRunning. The synchronous scripts stop running. Asynchronous scripts continue running but no new asynchronous scripts are started.
Resume script execution at run time
-
On the Logic menu, select Start Logic. The script execution is resumed.
Resume script execution at run time with scripting
-
Write the value 1 to the discrete system tag $LogicRunning. The $LogicRunning system tag must be contained in an asynchronous script that is executing at the time the logic is paused.