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

PI DataLink

PITimeDat()

  • Last UpdatedNov 21, 2022
  • 1 minute read

Returns actual or interpolated sample values of a PI point or PI AF attribute at specified time stamps.

Syntax

PITimeDat(DataItem, TimeStamps, RootPath, Mode)

Arguments

Argument

Type

Description

DataItem

String

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

TimeStamps

Reference

A reference to one or more worksheet cells that contain time stamps for which the function returns values. See Time inputs.

RootPath

String

The path to the data item. See Data items.

Mode

String

The method the function uses to retrieve data:

  • interpolated

  • exact time

Returns

Values at the specified time stamps, presented in the same orientation as the time stamp reference. If the time stamp reference is a row, the function presents values in a row. If the time stamp reference is a column, the function presents values in a column. The orientation of the output array must match the orientation of the time stamp reference.

Example

=PITimeDat("sinusoid",b1:b12,"","interpolated")

Retrieves interpolated values at the time stamps located in cells B1 through B12 for the PI point sinusoid on the default Data Archive server.

This function requires a twelve-cell horizontal output array, such as C1:C12 or B14:B25.

See also

Timed Data function

Define functions manually

Guidelines for entering arguments manually

Interpolated values

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