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

PI DataLink

PIArcVal()

  • Last UpdatedNov 21, 2022
  • 1 minute read

Returns the value of a PI point or PI AF attribute at a specified time stamp. This function supports bulk calls.

Syntax

PIArcVal(DataItem, TimeStamp, OutCode, RootPath, Mode)

Arguments

Argument

Type

Description

DataItem

String

The PI point name or PI AF attribute name for which the function returns a value. Specify a range of cells that contain PI point names or PI AF attribute names to return a value for each.

TimeStamp

String

The time stamp for which the function returns values. See Time inputs.

OutCode

Integer

An output code that determines what appended data the function returns and how the function orients output. See Output codes for information on how to compute the code. This function supports bits 1 and 2.

RootPath

String

The path to the data item. See Data items.

Mode

String

The method the function uses to retrieve values:

  • previous

  • previous only

  • interpolated

  • auto

  • next

  • next only

  • exact time

Example

=PIArcVal("cdep158","11-dec-92 19:20",0, "casaba","interpolated")

Returns the interpolated value of the PI point cdep158 at 7:20 p.m. on December 11, 1992 from the Data Archive server named casaba.

See also

Archive Value function

Define functions manually

Guidelines for entering arguments manually

Interpolated values

Retrieval of large amounts of data

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