Is there a way to remove all but the first value stored at a specific time using PI-SDK 184.108.40.2066?
Or a way to iterate through the values?
Can you provide more details on what you would like to do?
I'm rereading this and my guess is you have duplicate values at the same timestamp.
You could do a recorded values call to get all of the PI Values within a time range and loop through the collection. If the previous value's time-stamp is the same as value's time-stamp you are currently on, then you know there are multiple values at this time-stamp.
Is this what you are looking for?
Thanks Dan, that sounds like it would work. If I use PIData.RecordedValues(time1, time1, btInterp) I should always get at least one value, assuming I know the timestamp of the expected duplicate values.
Yep! Let us know if it doesn't work and I'll post back.
Retrieving data ...