Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Operations Management Interface

Scripting attributes

  • Last UpdatedJul 19, 2024
  • 2 minute read

The following table describes scripting attributes.

Attribute

Description

Runtime Access (Supervisory, User, Read-Only, None)

<Script>.AsyncShutdownCmd

If set to TRUE, the currently executing asynchronous script will be requested to shut down. This does not mean that the script actually will shut down. The script must be written to check this flag.

Supervisory, User

<Script>.Disabled

If set to TRUE, the calculation of the expression and the execution of the script code will be stopped.

Supervisory, User

<Script>.ErrorCnt

The number of errors detected for this script since last reset.

Read-Only

<Script>.ExecutionCnt

The number of times this script has executed since the last reset. Only applies to Execute type scripts, both synchronous and asynchronous.

Read-Only

<Script>.ExecutionError.Condition

If TRUE, the script engine encountered an error, such as divide-by-zero, .NET error or execution timeout) during last execution. This attribute can be alarmed. If alarmed, the alarm message is ExecutionError.Desc.

Read-Only

<Script>.ExecutionError.Desc

The error message associated with the execution error condition.

Read-Only

<Script>.ExecutionTime

The amount of time, in milliseconds, the script has been executing for asynchronous scripts. For synchronous scripts, this attribute reflects the time of the last execute. When the script has finished executing, the value remains at the final elapsed time for the script. When the script is restarted, this value is reset to zero (0).

Read-Only

<Script>.ExecutionTimeAvg

The average per scan execution time, in milliseconds. since the script was last reset.

Read-Only

<Script>.ExecutionTimeStamp

The last time the script executed.

Read-Only

<Script>.State

Indicates the state the object's script is in: Initializing, Error, Disabled, Busy, Ready.

  • Initializing indicates at least one of the script's external references in the script expression is still initializing.

  • Error indicates an error occurred since the last time the script was triggered.

  • Disabled indicates the script execution was disabled.

  • Busy indicates that the script is currently executing (only applies to asynchronous scripts).

  • Ready indicates that an asynchronous script is not currently executing or that a synchronous script is not in an error or disabled state.

Read-Only

<Script>.StatsReset

If set to TRUE, all statistics will be set to zero.

Supervisory, User

TitleResults for “How to create a CRG?”Also Available in