PrevEvent (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Find the time of a point's previous Archive event before a given time.
Syntax
PrevEvent(tagname, time)
Arguments
tagname
A tagname.
time
A time expression.
Returns
The timestamp of the previous Archive event for tagname before time.
Exceptions
If point has no Archive data before time, returns an error value.
Example
PrevEvent('tag1', '*')
PrevEvent('tag1','14-Dec-97')
NextEvent (page ), NextVal (page ), PrevVal (page ), TagVal (page )