|
|
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
|
|
|
|
|
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.
|
|
|
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
|
|
|
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....
|
|
|
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
|
|
|
|
Guest
|