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

PI Interpolated Values Options · View
milesUK
#1 Posted : Friday, October 22, 2010 11:52:09 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 75
Location: Cheshire, UK
Some PI Excel formulas allow interpolated values to be returned in addition to those archive values actually stored in the Historian database. Having tried to use this today I have hit a snag that I thought should be shared.

Say we have two time/value pairs in PI:

10:00:00 / 5MW
10:30:00 / 10MW

Interpolated should (I believe) return a point ON the line between those two points. So if an interpolated archive value is requested at 10:15:00 you would expect to get an answer of 7.5MW! However I noticed that the a value corresponding to 10:00:00 (i.e. 5MW) was being returned. The PI Help pages for Archive Value clarify matters:

Interpolated - Interpolates the value at the specified timestamp except for ... tags with step attribute set .... For this special case, the previous value is simply carried forward.”

As all of our tags are configured with the step attribute set we cannot currently utilise the interpolated method of retrieving data.
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.
jc113883
#2 Posted : Monday, October 25, 2010 1:49:18 AM
Rank: Member
Groups: Member

Joined: 10/7/2009
Posts: 14
Thanks Miles. I only read about that a few days ago myself when I was trying to get PI values into MS Word and the vba code wasn't working.

It makes sense to have it set up that way, though. For example, if you had a manual entry tag that someone updates only when they change a valve in the field which has no control system connection, then you don't want it to interpolate. I suppose, though, you should set up your PI query so that it gets the previous value instead of interpolating. This would be harder to do if you were looking at an equation instead of a PI tag.

On the plus side, it is very easy to update your tags to take step off, particularly if you use SMT tools in excel.
milesUK
#3 Posted : Monday, October 25, 2010 11:21:14 AM
Rank: Advanced Member
Groups: Member

Joined: 5/28/2009
Posts: 75
Location: Cheshire, UK
Intersting point about getting PI data into MS Word. I wonder if there are there other applications that that would work with?

Don't yet use the SMT (use the Beaver Valley Tag Manager) but looking forward to it's bulk editing capabiltiy when we move to the MDB. We'll have to consider the 'Step' question later. :-)
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.