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

PIArcVal Date Interpretation Options · View
milesUK
#1 Posted : Tuesday, May 24, 2011 11:14:12 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 75
Location: Cheshire, UK
I am using PIArcVal() to retrieve previous values to a given time stamp. I have been using this for a few years now but suddenly this week my unchanged Excel2007 workbook has started behaving oddly.

A formula, =PIArcVal(tag, "05-Jan-11 00:00:00", 1, PIServer, "previous") works and provides data like this:
04-Jan-11 23:58:00
04-Jan-11 23:30:01
04-Jan-11 23:37:59

However if I place the date in a cell and refer to it thus =PIArcVal(tag, B$1, 1, PIServer, "previous")I get this data returned:
30-Apr-11 23:58:00
30-Apr-11 23:30:01
30-Apr-11 23:37:59


Looking at the actual numbers in the time stamp, 05-Jan-11 = 40548. However PI is treating this not as 5/1/2011(5th Jan) but as 1/5/2011(1st May). The day prior to 1st May is of course the 30th Apr hence the values returned.

The timestamp is formatted as dd-mmm-yy and the PI Settings also uses that same format.

Has anyone else seen this behaviour or have any idea how to solve?
MilesUK
ProcessBook v3.0.15.3
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 : Wednesday, May 25, 2011 9:08:32 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hi Miles,

It would seen that somehow your locale has changed, although I still wonder why it is wrongly reading the date format. Strange.
I'll think on this one...
Principal Consultant
Real-Time Data Management @ Wipro Technologies
milesUK
#3 Posted : Tuesday, August 23, 2011 8:52:07 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 75
Location: Cheshire, UK
After much head scratching (and me using other PC's!) we finally decided to wipe the hard disc and start a fresh. Glad to say that this DID work.

Case closed.BigGrin
MilesUK
ProcessBook v3.0.15.3
squatty
#4 Posted : Tuesday, August 23, 2011 11:18:39 AM
Rank: Advanced Member

Groups: Member

Joined: 4/7/2011
Posts: 137
Location: KZN, South Africa
We had the same problem, re-installed Office suite solved our issues.
milesUK
#5 Posted : Tuesday, August 23, 2011 1:47:36 PM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 75
Location: Cheshire, UK
hi squatty,

never even thought to try reinstalling just Office.d'oh! but then it was probably just easier to rebuild the PC OS from a ghost image anyway.BigGrin

Miles
MilesUK
ProcessBook v3.0.15.3
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.