|
|
Rank: Newbie Groups: Member
Joined: 6/16/2009 Posts: 2 Location: mumbai
|
Hi I am working on a project which is fetching values from PI. I am using AF SDk to fetch the values for the given time range. Howerver, it fetches values one hour behind the start range value. for eg. If i pass start range as 12/07/2009 6:10:00 then it fecthed values from 12/07/2009 7:10:00. I checked PI. IT has veluse for 6:10:00. This is the function I am using: AFValues values = attribute.GetValues(new AFTimeRange(new AFTime(startDate), new AFTime(endDate)), resolution, null);
Please let me know if you have any solution for the same.
|
|
|
|
|
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 458 Location: Cheshire, United Kingdom.
|
Hello and welcome to the forum!! Are you, your AF server or PI server in different timezones? Rhys. OSIsoft PI System SpecialistsPI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!
|
|
|
Rank: Newbie Groups: Member
Joined: 6/16/2009 Posts: 2 Location: mumbai
|
Could you please let me know how to check the timezones for PI server and AF server as I am newbie to PI?
Mean time I tried using following function provided by PI SDK and it works fine. PIValues values = data.PlotValues(startDate, endDate, resolution, null);
But the constraint is that I have to use function provided by AF SDK and not the PI SDK.
|
|
|
|
Guest
|