Pisampfildat(), Time stamps are also returned – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual
Page 127

9
●
FactoryTalk Historian DataLink Function Reference
●
●
●
●
●
119
Argument
Value
etime (string)
The end time for the range (in FactoryTalk Historian time format).
interval (string)
The interval between sampled values (in FactoryTalk Historian time
format).
outcode (integer)
An output code, either 0, 1, 2, or 3.
PIServer (string)
The target FactoryTalk Historian server.
Returns
Outcode
Sampled Value
Time stamp
0
output cell
none
1
right column
output cell
2
output cell
none
3
row below
output cell
An output code (page 104) of 2 transposes the output array that results
from an output code of 0. An output code of 3 transposes the output array
that results from an output code of 1.
Example:
The following retrieves sampled data for the tag located in cell B1, from
midnight yesterday to midnight today at 3-hour intervals:
=PISampDat(b1,"y","t","3h",1,)
Time stamps are also returned.
PISampFilDat()
Retrieves filtered, sampled FactoryTalk Historian point values
corresponding to a specified time range, using the following syntax:
PISampFilDat(tagname, stime, etime, interval, filtexp,
filtcode, outcode, PI Server)