LastArchivedTime
- Last UpdatedNov 22, 2022
- 1 minute read
- PI System
- PI Manual Logger 2017 R2
- Visualization
Syntax
LastArchivedTime(TagName)
Arguments
|
Argument |
Data Type |
Description |
|---|---|---|
|
TagName |
String |
The name of any PI tag in PI Data Archive. The tag does not necessarily need to be in the tour. The tag must be surrounded by double or single quotes. |
Returns
Returns the timestamp of the last archived value for the TagName argument. This TagName argument can be any PI tag in PI Data Archive and does not necessarily need to be in the tour. If the last timestamp cannot be determined, is returned.
Examples
LastArchivedTime("PimlDemoTag")
This example returns the timestamp for the last archived value for the tag named PIMLDemoTag. If the timestamp for the last archived value cannot be found for the tag, then is returned.