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

PI System Management Tools

Performance equation syntax

  • Last UpdatedOct 04, 2024
  • 1 minute read

Writing a performance equation calculation expression is similar to writing an expression in arithmetic. You can use any of the standard arithmetic operators in a performance equation expression (such as +, -, and *) to add the values of two points together, add a number to the value of a point, and so on.

As with arithmetic expressions, the building blocks of a performance equation expression are operands and operators. Performance equations are simply expressions in which operators act on operands. A basic performance equation expression takes the form: operand operator operand as shown:

Operand

Operator

Operand

Resulting expression

'TagA'

+

'TagB'

TagA plus the value of TagB

3

-

'TagC'

3 minus the value of TagC

7

*

Sqr('TagD')

7 times the square root of TagD

You can construct more complex performance equation expressions, just as you can in arithmetic. The PE Scheduler performs most operations in the same order as they would be performed in a mathematical expression.

Use parentheses to group together expressions you want to evaluate first.

The following example evaluates as the sum of the values of 'TagA' and 'TagB', divided by the difference of 3 minus 'TagC':

('TagA' + 'TagB')/(3 - 'TagC')

This next example is TagA divided by the sum of TagA and TagB:

'TagA'/('TagA' + 'TagB')

This next example is 3 plus the product of 7 and the square root of TagD:

3 + (7 * Sqr('TagD'))

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