LastArchivedValue
- Last UpdatedNov 22, 2022
- 1 minute read
- PI System
- PI Manual Logger 2017 R2
- Visualization
Syntax
LastArchivedValue(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 last archived value for the TagName argument. This TagName argument can be any PI tag in PI Data Archive. If data for the PI tag will not be collected in the tour, then add the PI tag to the tour and enter in its CMDE configuration. If the last value cannot be determined, is returned.
Examples
LastArchivedValue("ML Tag 101")
This example returns the last archived value for the tag named ML Tag 101. If the last archived value cannot be found for the tag, then is returned.