Any reasons why the PIPoint DR DataRetrieval doesn't include the Exact Time?
I don't want to get anything but the value at the exact time, how can I do it?
I'm not sure what the reason is for not offering "Exact Time" as a data retrieval mode in the PI Point DR (maybe somebody from the AF team could comment on this one), but I would suggest you use a combination of AF SDK and PI SDK. Essentially, the AFAttribute's RawPIPoint property allows you to bridge from AF SDK to PI SDK by giving returning the corresponding PISDK.PIPoint object. From there you could simply use the PIPoint.Data.ArcValue method with the rtCompressed retrieval mode:
PISDK.PIPoint myPoint = (PIPoint) myElement.Attributes["MyAttribute"].RawPIPoint;PISDK.PIValue myValue = myPoint.Data.ArcValue(Timestamp, rtCompressed, AsynchStatus);
Thanks Steve. Your solution is perfect but only on V2 of the framework. I use my custom PIPoint DataRefence built with 1.3.
I was already using the PI SDK to retreive my values but I had misread the rtCompressed definition
Now I will use it to get the exact time.
Go vCampus Go !
Retrieving data ...