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

AVEVA™ Batch Management

Function Examples

  • Last UpdatedJun 06, 2017
  • 1 minute read

The following examples illustrate the types of expressions that you can create and expressions that are invalid.

Expression

Result

Description

Ask("Ready?")

Valid

Operator is asked a question. The Ask function does not evaluate True or False until the question is answered.

WaitSec(10)

Valid

10 second delay. The WaitSec function does not evaluate to True until the 10 seconds has expired. (Note: It has No state True or False before the 10 seconds are up).

5 < 3

Valid

Evaluates to False.

WaitMin(5 + 5)

Valid

10 minute delay. Evaluates to True after 10 minutes. Until then, it is neither True nor False.

Ask("OK?") | WaitSec(10)

Valid

This is a valid expression but it may not yield the expected results. Since both functions must evaluate for the expression to evaluate, the expression acts more like an And than an Or.

Ask("OK?") & WaitSec(10)

Valid

Though not obvious, this expression has exactly the same result as the one above.

WaitSec(10) Or WaitSec(5)

Invalid

The Or operator is invalid. Use the | character.

SendCustomEvent("LogMessage", "Executing Branch2")

Valid

This example shows how to use the SendCustomEvent function to send messages to the ArchestrA Logger. For this to work, an event client must subscribe to these messages and log them to the ArchestrA Logger.

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