PrevEvent
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Find the timestamp of the last recorded value before a specified time.
Syntax
PrevEvent(attname, t1)
Arguments
-
attname
The name of an attribute, enclosed in single quotation marks
-
t1
A time expression
Returns
The timestamp of the last recorded value before the specified time for the specified attribute
Exceptions
If there is no recorded value before the specified time, the function returns an error.
Example
-
PrevEvent('att1', '*')
[Find the timestamp of the last recorded value of 'att1' before current time]