AnsweredAssumed Answered

Ways to retrieve data from Pi Data Archive

Question asked by Noga on Jun 18, 2018
Latest reply on Jun 18, 2018 by Roger Palmen

I am trying to figure out the best way to retrieve tags data from my pi data archive.

I am writing my code using AF-SDK 2016, and using PIPoint.RecordedValues method that recieves AFTimeRange timeRange parameter to indicate time boundaries for the tags values of interest.

I also understand that AF-SDK has PIDataPipe class that enables to get a continuous flow of data by subscribing to the PI Server and keeping all data changes for tags by demand, and that the retrieval of data is not based on a given time-range, but on maxEventCountPerServer parameter given to the

GetObserverEvents method.

 

What I would like to know is, is the PIDataPipe class applicable for AF-SDK 2016? and what are the advantages and disadvantages of using one approach over the other?

 

Outcomes