This article from InSource shows how to change a Condition Script from synchronous to asynchronous to prevent data issues during Runtime.
- Author: Ernest Lee
- Published: 12/19/2017
- Applies to: InTouch v9 and higher
A typical Condition Script can either run synchronously or asynchronously.
Explanation of both:
- When a synchronous script runs, all InTouch animation and tag value updating stops. Then, animation and tag value updating resumes after the script stops.
- When an asynchronous script runs, all InTouch animation and tag value updating continues during the period when the script runs.
Per information above a synchronous script can slow down communication depending on how often it is running.
The script below is synchronous
Replacing the 0 with a 1 forces the script to run asynchronously which does not affect InTouch animation or tag value updates.