1 Reply Latest reply on Feb 28, 2018 1:43 PM by Dan Fishman

    Count a digital tag in AF Analysis - What is the best solution

    Peavey

      I have a digital tag that I want to analyze each day: How many times has the tag been "1" last 24h?

       

      I have searched different topics and tried both expressions and rollup in analysis, but haven't got a good solution yet.

      I is also important for me to be able to backfill a tag with the results from this analysis.

       

      Any good suggestions?

      Thanks!

       

       

      -A-

        • Re: Count a digital tag in AF Analysis - What is the best solution
          Dan Fishman

          You will need an analysis to translate the digital state into a number and then multiple the average by the event count to obtain the total numbers of events within the time period.  KIB01120 has this exact situation worked out in solution number 4!  Note, in step 2 of example 4, the output is a PI Point Data Reference and that actually is not required.  You could use an analysis that does not write history since outputting the state as a 0 or 1 probably isn't that useful.

          1 of 1 people found this helpful