3 Replies Latest reply on Nov 6, 2018 1:28 PM by Dan Fishman

    PI Web API Time Filter Expression

    Oscar_Garcia

      Hi,

      I have an excel calculation using the the Time Filtered Datalink's function and I want to translate this into a PI Web API call.

      With Datalink I'm returning the total hours the following condition is true:

      ('tag1'>=512 or 'tag2'>=870) and ('tag3'>=30)

       

      How can I do the same using the Web API. I understand I could use TimeGE() in the calculation controller, but as far as I know TimeGE() allows to compare only one tag. In this case I'm comparing more than 1 tag, so I'm not sure if TimeGE will work in this case.

       

      Thanks,

      Oscar