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

PI System Management Tools

TimeLT (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 1 minute read

Find the total time in seconds, within a range, when a point is less than a given value.

Syntax

TimeLT(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 less than the given value.

Exceptions

None.

Notes

TimeLT interpolates between Archive events, if necessary, to find the times when the point crossed the given value.

Example

TimeLT('tag1', 't', '*',40.0)

TimeLT('digitaltag', '-1d', '*',TagVal('digitaltag', '14-Dec-97'))

TimeLT'digitaltag', '14-Dec-97', '*', "On")

TimeEq (page ), TimeGE (page ), TimeGT (page ), TimeLE (page ), TimeNE (page )

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