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

PI Manual Logger

LastArchivedTime

  • Last UpdatedNov 22, 2022
  • 1 minute read

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, Unknown 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 Unknown is returned.

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