YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

GetValues function Options · View
todubhai
#1 Posted : Tuesday, June 16, 2009 7:58:28 AM
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.
Sponsor  
 
RJK Solutions
#2 Posted : Tuesday, June 16, 2009 1:24:39 PM
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 Specialists
PI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!


todubhai
#3 Posted : Wednesday, June 17, 2009 6:57:25 AM
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.



Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.