0
Count Daily events
Forum / Questions & Answers
I have a system with a tag that produces 3 values:
- UP
- DOWN
- NoData
And I want to count the number of times (within a day) the tag value switches from UP to DOWN or from NoData to UP.
I have the UP to DOWN, but I cant get the NoData to UP figured out.
if( ( [<tag name>] = 'DOWN' and PreviousValue('[<tage name>]')='UP' ) ,1,0)
3 replies
-
Hi ,
If you set the PreviousValue function equal to a variable, you can then pass that variable into the Quality function, like so:
32768 is the decimal equivalent of a NoData quality. Hope this works for ya!
-
This works...TY