AnsweredAssumed Answered

How can I limit the number of values returned for RecordedValues?

Question asked by PSS_SD on Feb 16, 2015
Latest reply on Feb 27, 2015 by dng

I've been converting from PI-API to PI-SDK. And I'm already on the part of getting values from PI.


One of the PI-API methods to be converted is piar_compvalues. By using this method, you can specify the start, end and count of the values to be returned. I can see that there are 3 variations for RecordedValues: RecordedValues, RecordedValuesByCount and RecordedValuesAvailable.


RecordedValues - You can specify Start and End date.

RecordedValuesByCount - You can specify Start date and count.

RecordedValuesAvailable - not very familiar with.


With these three, I don't see any method which I can specify the Start and End date together with the count of max values to get.


Is there any way to possibly get the behavior that I was expecting?


Btw, I'm writing using c++.


Thank you in advance!