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

Comparing timestamps in VB.Net Options · View
ShellAnalyst
#1 Posted : Thursday, June 23, 2011 6:12:48 PM
Rank: Newbie
Groups: Member

Joined: 8/11/2010
Posts: 6
Location: Calgary, Canada
Hello Gang,

I am trying to check some data that I have in PI. I need to ccompare a tags timestamp and value in pi to the ones I have in a text file. I just need a way to get the exact value and timestamp from PI using VB. Right now my code looks like this:


piValue = server.PIPoints(tagName).Data.ArcValue(timeStamp, PISDK.RetrievalTypeConstants.rtAuto, Nothing)


There's no retrieval type constant for getting the exact time like there is in datalink. Is there another function I should be using?
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.
ejyoungone
#2 Posted : Thursday, June 23, 2011 7:09:28 PM
Rank: Member
Groups: Member

Joined: 11/30/2010
Posts: 15
Location: New York, USA
piValue.timestamp.localdate ?
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.