Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Count Hours Online

$
0
0

Hi,

 

I'm trying to sort out on how to write a certain PI calculation. I have a pi tag for a valve that is either opened or closed. What I'd like to do is calculate the total hours that the valve remained in the open positon (value=1, closed=0) for the previous day (our days start at 6am) and current day. On average, the valve stays open for the batch process which takes about 20 hours but it can vary.

 

Any help would be appreciated.

 

Thanks!


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>