AnsweredAssumed Answered

In PI Vision, show how long since a Pi Tag changed

Question asked by jholland on Mar 1, 2019
Latest reply on Mar 1, 2019 by jholland

Hi,

first time I have asked a question here....

 

Is there an easy way to do this in PI Vision: Show the length of time since a Pi point has changed?

 

Background:

We have a request to show the time since or Dryer turnied on or off on a PI Vision display.

I have created a PI point and and analyses that updates the Pi point when dryer state changes.

There is a SecSinceChange function I can use to get the time since the tag changed, and that gets the right number.

However, it seems that I can't get this to run in 'real-time'.

I can schedule it to run periodically and this seems to work, but then I don't seem to be able to control the number of decimal places when I show hours.

Perhaps this is due to have AF Server version 2.7.0.6937, as newer version of PSE have a display digits option, but whatever I set is not remembered and the option is not on a older PSE.

 

I am now thinking that I could use a formula like Floor(SecSinceChange/360)/10 to do this. But I would still need to run the analyses every second to get a 'real-time' answer. This seems wasteful.

 

 

Thanks for reading...

Outcomes