RunAnimations function

RunAnimations() forces all animations on a display to run and then updates the display with any resulting changes.

RunAnimations() is useful when you want to immediately see changes made to a display through an event handler, such as in a display's OnOpen script.
Important:
  • Emerson recommends that you use this function sparingly and intentionally since running all animations on a display can take considerable time on larger, more complex displays.
  • Do not use this method in a GEM or in any way that might result in multiple calls to this method within a single display refresh rate of 1 second.
Return values
The display updates with any resulting changes.
Syntax
DL.RunAnimations()
Example
Example Result

On a display where you have the following script:

To see a configured example for the RunAnimations():
  1. Open the DataEntry contextual display from the Library Explorer in Graphics Studio.
  2. In the Interaction tab, note the display's OnOpen event script.

When the display opens, the parameter's current process value renders immediately.