10 Replies Latest reply on Nov 29, 2018 5:14 PM by Dan Fishman

    PI Web API Time Filter Expression



      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.