|
|
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.
|
|
|
|
|
OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System. We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ or contact OSIsoft vCampus for more details.
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 612 Location: Cheshire, United Kingdom.
|
Hello and welcome to the forum!! Are you, your AF server or PI server in different timezones? Rhys. Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
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
|