Does PI SDK return values in an order or not?

Discussion created by vincent.spaa on Dec 18, 2013
Latest reply on Dec 18, 2013 by rdavin

Hello there,


Today I ran into a situation where I needed the "latest value in time" returned from a call to RecordedValues.


My gut tells me I can simply get the last value from the collection since I'm assuming the values from RecordedValues are ordered (ascending) by time.


But, since I couldn't find any evidence in the SDK documentation, I'm here to ask you a simple question. Are the values returned from RecordedValues always guaranteed to be ordered?


And while we're at it, does the same principe apply to all related functions?


If I'm just seriously overlooking a piece of documentation then I'm sorry ;)




Thank you in advance.