0

Count Daily events

I have a system with a tag that produces 3 values:

  1. UP
  2. DOWN
  3. 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

null
    • smason
    • 3 days ago
    • Reported - view

    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!

    • jeroen_leverman
    • 2 days ago
    • Reported - view

    This works...TY

      • smason
      • 2 days ago
      • Reported - view

      You're welcome!

Content aside

print this pagePrint this page
  • Status Answered
  • 2 days agoLast active
  • 3Replies
  • 9Views
  • 3 Following