1 Reply Latest reply on Dec 13, 2011 8:04 PM by Ahmad Fattahi

    event-weighted standard deviation, averages, etc. with PEs


      Is possible to do event-weighted calculations with the PI-PE module? Say, I want to calculate the standard deviation of a manually entered tag for the last 24 hours. I tried this, but it isn't correct because there may be 24 values or 13 values.



        • Re: event-weighted standard deviation, averages, etc. with PEs
          Ahmad Fattahi



          PI Performance Equations do not provide event-weighted standard deviations for a single tag over an interval. They provide time-weighted standard deviation, or event-weighted for a list of explicit arguments as opposed to for a tag and a time interval.


          You can instead use a Totalizer and the StdDeviation function. It provides both time-weighted and event-weighted standard deviations. Please refer to the PI Server Applications User guide for more information. Also, since this is not exactly a programming question, I would suggest you seek help with our regular Tech Support folks in case you hit further issues on how Totalizers work. They are in much better position for these types of questions.