|
|
Rank: Member
 Groups: Member
Joined: 11/25/2009 Posts: 10 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
|
|
|
|
|
|
|
|
Rank: Advanced Member Groups: Member
Joined: 12/3/2009 Posts: 49 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: 10 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: 311 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. OSISoft PI System SpecialistsPI Consultancy on PI Systems, Analysis Framework, PI custom developments and all things PI.
|
|
|
|
Guest
|