How to create a day counter point in PI, i.e. days since last event?
This needs a trigger to do. For example, how do you decide the "last event" please? My scenoria is if the timestamp for the event no change for 5 mins, it should be the last event. Then, you could use PI PE to do the calculation. The following could be the reference:
If ('*' - PrevEvent('tag')) > 300 then ('*' - PrevEvent('tag'))/(24*3600) else NoOutput()
Wish this could help.
PI Developer Club
Retrieving data ...