3 Replies Latest reply on Oct 25, 2011 6:29 PM by Ahmad Fattahi

    Datalink - count how many times a digital tag change state

    MGendron

      Hi community,

       

      Sorry if this question is in the wrong forum but i don't know VCampus very well yet. So i have a digital tag with two possible state: "ENABLED" and "NOT ENABLED". I want to count in datalink how many time the value goes from "NOT ENABLED" to "ENABLED". I've trid a CalculatedData with a prevval('xxx') = "ENABLED" and tagval('xxx') = "NOT ENABLED" PI Expression but it return 604800, way too much for the week of test data i have. I also tried the EventCount PI Expression and it return 900, again too much for my test data...

       

      Any idea on how to get that?

       

      Mathieu G.