HasChanged
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Return True if an attribute has had any event in the specified time period; otherwise return False.
Syntax
HasChanged(attname, t1)
Arguments
-
attname
The name of an attribute enclosed in single quotation marks
-
t1
The start of a time period ending at execution time; can be any relative time expression in single quotation marks (such as 't - 4h')
Returns
True if attname has any event in the specified time period; otherwise returns False
Example
-
HasChanged('att1', 't-4h')
[Returns True if 'att1' received any updates since 8 p.m. last night, regardless of whether the update changed the actual attribute value]