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

PI datetime values Options · View
robbyji
#1 Posted : Monday, September 07, 2009 4:19:30 PM
Rank: Newbie
Groups: Member

Joined: 6/20/2009
Posts: 4
Location: India
i need to get PI value at start of shift say at 8:00: 00 AM , value may not be available for 8 :00 AM so the next value say at 8:00:23 AM wiil work. means i need th to the next value from 8:0:0 AM. I am using VB.net .
robby
Sponsor  
 

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.
RJK Solutions
#2 Posted : Tuesday, September 08, 2009 8:38:11 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hi Robby,

You need to look at ArcValue method with the relevant Retrieval Type Constant - in this case rtAtOrAfter. Then supply your timestamp and you get returned the value at the time or the next available value.

Example:
Code:

Dim Tag As PISDK.PIPoint = _Server.PIPoints("TAGNAME")
Dim TagValue As PISDK.PIValue = Tag.Data.ArcValue("t+8h", RetrievalTypeConstants.rtAtOrAfter)


Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
robbyji
#3 Posted : Saturday, October 03, 2009 7:12:24 AM
Rank: Newbie
Groups: Member

Joined: 6/20/2009
Posts: 4
Location: India
thanks
i got it working
robby
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.