7 Replies Latest reply on Oct 2, 2018 5:24 PM by ccastro

    How to count changes of state and to record de duration of these states?

    ccastro

      Hello PI Friends.

       

      I have some devices in remotes places that are to comunicating data in a real time. Sporadically, the comunication with these devices is loose. I have, for each of these device a tag that is read while the comunication is stablishment. When the comunication is looses, this attribute is in badval state.
      I need count the number of comunication looses per day, week and month, and the duration of each of these looses in order to take statitics like the average of comunication loose time.

       

      I was make some test with EventCount function, but i can not get my target.

      In the next example y have 15 counted events at the last 4 hours but the number of comunications looses is 8. In this sense, wold be interesting to record the duration of each microcut. Any idea?

       

      trend.PNG


      Thank you for your help!