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

AVEVA™ Historian

AVERAGES

  • Last UpdatedAug 17, 2022
  • 1 minute read

The AVERAGES() function calculates the statistical average value of a stream.

When using AVERAGES() in a query, if no resolution is specified then the query returns an error.

Note: This is the preferred method for calculating averages from discrete samples, such as those from a checkweigher, but for most measurements, using AVERAGE is preferred.

Syntax

Format

Stream = AVERAGES( Stream, TimeInterval )

Arguments

Stream - A time-ordered vector of values

TimeInterval - The time interval over which average values are calculated

Description

Returns the statistical average a stream over the specified time interval. The start and end times are rounded to the start and end times of the interval. For example, if the interval is hourly, the time stamps of all values end with "00:00.000".

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