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

Getting Minimum value from a time interval Options · View
dinoken
#1 Posted : Friday, February 05, 2010 10:29:51 PM
Rank: Member

Groups: Member

Joined: 11/25/2009
Posts: 11
Location: Aberdeen
Hi there,

What is the most efficient way of determining the minimum value of a tag in a certain time period? Or even doing a test of counting how many datapoints there are below a certain value?

Cheers,

dinoken
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.
Michael
#2 Posted : Saturday, February 06, 2010 8:33:56 AM
Rank: Advanced Member
Groups: Member

Joined: 12/3/2009
Posts: 71
Location: Germany/Pennsylvania
For the minimum: Use the summary method of the PIData object.
For the event count: use an expression calculation.

We had a similiar thread some days ago and Rhys provided some source code.

Michael
dinoken
#3 Posted : Saturday, February 06, 2010 9:21:46 AM
Rank: Member

Groups: Member

Joined: 11/25/2009
Posts: 11
Location: Aberdeen
Thanks! I will trawl through it...

On first past i couldn't find the thead....
RJK Solutions
#4 Posted : Saturday, February 06, 2010 10:56:41 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hey dinoken,

As Michael pointed out, see this thread: http://www.rjksolutionsl..._Find-MinMax-Value.aspx

Some code in there for you to use and modify to suit your needs.

Cheers,

Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
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.