Rate
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Return the difference over time between the current value and a previously evaluated value of an attribute or (time) expression.
Syntax
Rate(x)
Arguments
-
x
An attribute or (time) expression that resolves to a numeric value
Returns
-
The calculated difference, using the value of the attribute, numeric, or timestamp value of the expression parameter, according to this formula: (current value – previously evaluated value) / (current timestamp – timestamp from previous evaluation)
Example
-
Rate(‘att1’)
-
Rate('sinusoid')
-
Rate(DaySec(‘*’) + 1)