Background Script
The background script runs continously in the background.
This type of script is used, for example, in all those cases where you need to perform some global logic or arithmetic calculation .
The background script manages the following events:
|
Fired at start of the supervision system |
|
Firedperiodically while the system is active |
|
Fired before closing the supervisory system |
The OnInitialize procedure is performed once at the system startup.
TheOnTimer procedure is performed cyclically throughout the period of activity of the supervisory system.
The period of execution of the OnTimer even tis defined by setting the Period to the desired value (in milliseconds). Usually this setup is done in the procedure OnInitialize.
The OnTerminate procedure is performed before the closing of the system.
To change the background script, select the command Background script from the Configure menu in X Editor.
Caution! Any changes to the script in the background will take effect only after restarting the system or the executor script. The executor can be stopped or restarted using the appropriate commands in the Engine menu.
Stopping the script engine will fire OnTerminate event.