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

PI Manual Logger

LastArchivedValue

  • Last UpdatedNov 22, 2022
  • 1 minute read

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 Skip() in its CMDE configuration. If the last value cannot be determined, Unknown 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 Unknown is returned.

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