Scripting is one of the most powerful features in the Application Server world. The sample code in this Tech Note runs in ArchestrA Synchronous Scripting mode. This code explains the following recommended practices:

  • Insert a data row into a database table when the AppEngine’s ScanCyclesCnt (built-in) attribute has a data change.

    Based on the current measurement on ScanCyclesCnt, the value of this attribute is changed every 10 seconds.

  • The proper sequence for using scripts’ Execution Types.
  • Effective use of ArchestrA Objects’ predefined attributes in the script’s Expression for special requests.

Application Versions

  • Wonderware Application Server 2012 and later