Hi
I am a beginner in PI Processbook. Currently, I am monitoring a tag which has control limits as maximum 230 and minimum as 120. In VBA I accessed the tag value by getvalue and checked whether the current value is within limits or not by if condition now my question is, How can I find the time duration in which the tag value remained below or exceeded the constraints, and then how can I add up the total time tag was below limits and then calculate the time in error state out of 24 hours as percentage good time? I will be grateful for any relevant help in-terms of sample Visual Basic code, functions to use or anything related.
Salz