2 Replies Latest reply on Jun 18, 2015 3:01 PM by pthivierge

    Looking how to use the af sdk to detect state change

    mdspath

      Hello:

      I'm trying to utilize the power of the AF SDK to detect state changes in a bool pi point. I've been looking into the the AF SDK reference about AFDataPipeEvent() class, not sure if it is what I need. Basically, I have a status bit, I know the start timestamp of it when it transitioned from 0->1, the timeframe (ie. how long it will stay high) is not known. I have to find the time that it transitioned from 1->0

      This seems like what event frames was invented for but I'm interfacing with PI solely from the af sdk.

      Thanks

       

      p.s. Looking further into DataPipes (AF or not) not sure if I'm dealing solely with historical data or not. The bit could be high at the moment I query for it so in that case it is realtime otherwise it is  historical. Using events seems really complicated.