Loading API Index...
Open Automation Software API Documentation
Show / Hide Table of Contents

Calculation Engine Statistics Functions

The following are statistical functions to be used in the OAS Calculation Engine against numeric Tags:

Moving Average

Returns the moving average over a specified time period. The first parameter must be a Tag Value.

Parameters:

  • Tag value to evaluate in the moving average
  • Time period to evaluate in seconds

Example:

AVG([Tag.Value],60)

Moving Maximum

Returns the highest value over a specified time period. The first parameter must be a Tag Value.

Parameters:

  • Tag value to evaluate in the moving maximum
  • Time period to evaluate in seconds

Example:

MOVMAX([Tag.Value],60)

Moving Minimum

Returns the lowest value over a specified time period. The first parameter must be a Tag Value.

Parameters:

  • Tag value to evaluate in the moving minimum
  • Time period to evaluate in seconds

Example:

MOVMIN([Tag.Value],60)

Moving Sum

Returns the total of all samples over a specified time period.

Parameters:

  • Tag value to evaluate in the moving summation.
  • Time period to evaluate in seconds.

Example:

MOVSUM([Tag.Value],60)
Back to top Copyright (c) Open Automation Software. All rights reserved.