This content has been marked as final.
Show 2 replies

Re: PI Web API Time Filter Expression for Total Run Hours
tramachandran Mar 23, 2018 3:23 PM (in response to ehoffman)1 of 1 people found this helpfulYou can use the Calculation controller in PI Web API for your purpose. These methods provide mechanisms to evaluate Performance Equation expressions over objects in Asset and Data Servers. Calculations over values interpolated at intervals, over recorded values, and at specific times, as well as summary calculations, are supported.
Example:
If your equation is TimeEq('MYTAG', t', '*', "RUNNING")/3600
then your URI would be https://<WEBAPISERVER>/piwebapi/calculation/recorded?webid=<WEBID>&expression=<EQUATION>&starttime=t&endtime=*

Re: PI Web API Time Filter Expression for Total Run Hours
ehoffman Mar 23, 2018 3:51 PM (in response to tramachandran)Very good thank you much!
