Effect of loops on other run-time processes
- Last UpdatedJul 23, 2024
- 1 minute read
While a FOR loop is executing, all other run-time processes in WindowViewer are paused. This includes the following areas:
-
Screen updates (animation links, value displays, trends, etc.). This means that you cannot use FOR loops to animate objects, because no movement will occur until after the loop has completed.
-
I/O communications. For example, if you modify the value of an I/O tag in a FOR loop, only the value after the final iteration is written to the I/O device.
-
Other scripts, including asynchronous QuickFunctions.
You can avoid pausing other run-time processes by placing the FOR loop in an asynchronous QuickFunction.