gies

Optimization: AF data reference for counting nr of bad/stale tags

Discussion created by gies on Oct 3, 2012
Latest reply on Oct 4, 2012 by gies

For monitoring purposes (using notifications) I would like to add a attribute using a custom data reference that counts the number of referenced PI points in its direct children that are currently bad. In the same manner I would also like to add an attribute that counts the number of pi points that are stale. 

 

My first approach is to simply loop over the elements children and count the number of bad values for the attributes having a PI Point data reference. However, if I add the stale point counting option the loop has to be completed twice. 

 

Is there any general purpose memory available from a custom data reference where I can cache the results from my loop such that I only have to run the loop once? Or are there any other suggestions? 

 

Thanks in advance,

 

Gies

Outcomes