TimeGE (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Find the total time in seconds, within a range, when a point is greater than or equal to a given value.
Syntax
TimeGE(tagname, starttime, endtime, value)
Arguments
tagname
A tagname.
starttime
Beginning of the time range to search. Relative times are relative to endtime, if endtime is not itself a relative time.
endtime
End of the time range to search. Relative times are relative to starttime, if starttime is not itself a relative time. This time must be after starttime.
value
Must be an integer or real number or digital state (character string); the value to search for.
Returns
The time period in seconds within the given range, for which the point was greater than or equal to the given value.
Exceptions
None.
Notes
TimeGE interpolates between Archive events, if necessary, to find the times when the point crossed the given value.
Example
TimeGE('tag1', 't', '*',40.0)
TimeGE('digitaltag', '-1d', '*',TagVal('digitaltag', '14-Dec-97'))
TimeGE('digitaltag', '14-Dec-97', '*', "On")
TimeEq (page ), TimeGT (page ), TimeLE (page ), TimeLT (page ), TimeNE (page )