Hi All,

I am trying to realise cumulative value of some Pi Points but in doing so I am having performance issues as the function slows down the entire system.

I am trying to find a value to optimise the solution.

The analysis I am using is:

Variable 1: **ParseTime(Concat("*-",'Days',"d"))**

Variable 2: **TagTot('VALUE','*',Variable1)**

Days is a Pi Point and typically has value of 15d.

Regards,

Archit

Hi Archit,

Split the analysis into two,

One is to get the endtime: ParseTime(Concat("*-",'Days',"d")) --> Map it to an attribute and have this analysis as event triggered. So that this analysis will run only when the Days tag has the value update.

Second Analysis to calculate the cumulative value: TagTot('VALUE','*','Attribute1') --> Have this analysis as periodic with your convenient frequency. 'Attribute1' will hold your 1st analysis output.

Hope this will resolve your performance issue.

-Nav