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