METER
- Last UpdatedSep 07, 2022
- 1 minute read
The METER() function returns the delta change of a stream’s value. This works both for tags without rollover, and tags that reset upon reaching a rollover value.
If an expression includes a single tag, the rollover value defined in the AVEVA Historian will be used. If an expression includes multiple tags, or performs an operation on a tag, a rollover value of 0 is assumed. For example, the following would use the Historian-defined rollover value:
-
METER( Tag1, hour)
The following would assume a rollover value of 0:
-
METER( Tag1 + Tag2, hour)
-
METER( Tag1 + 5, hour)
Otherwise, the METER function works similarly to counter retrieval mode. For more details about rollover, delta change, and common use cases for this function, see Counter Retrieval.
Syntax
|
Format |
Stream = METER( Stream ) |
|
Arguments |
Stream - A time-ordered vector of values |
|
Description |
Returns the delta change in the stream during the query period. The query period is based on local time. |
|
Format |
Stream = METER( Stream, TimeInterval ) |
|
Arguments |
Stream - A time-ordered vector of values TimeInterval - The time interval over which the delta change is calculated |
|
Description |
Returns the delta change in the stream over the specified time interval during the query period. The query period is based on local time. The returned start time is rounded down to the time interval's unit. For example, if the interval is hourly, the time stamps of all values end with "00:00.000". |