PINCompDat()
- Last UpdatedNov 21, 2022
- 1 minute read
- PI System
- PI DataLink 2023 SP1
- Visualization
Returns a specific number of PI point values or PI AF attribute values beginning at a certain time.
Syntax
PINCompDat(DataItem, STime, NumVals, OutCode, 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. |
|
STime |
String |
The start of the time period for which the function returns values. See Time inputs. |
|
NumVals |
Integer |
The number of values that the function returns, beginning at STime (specify a negative number to retrieve values backward in time). |
|
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, 2, 5, and 6. |
|
RootPath |
String |
The path to the data item. See Data items. |
|
Mode |
String |
The method that the function uses to determine which values to retrieve near the start time (boundary type):
|
Example
=PINCompDat("sinusoid","1:00:00",10,1,"","inside")
Returns ten values and the corresponding time stamps from the default Data Archive server for the PI point sinusoid starting from 1:00 a.m. this morning, using boundary type inside.