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

Analytics and Notifications for PI System Explorer (PI Server 2024 R2)

HasChanged

  • Last UpdatedJan 11, 2023
  • 1 minute read

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]

In This Topic
TitleResults for “How to create a CRG?”Also Available in