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

Trying to return how long a tag is true, each time it goes true, within a given tiem frame

$
0
0

Hello,

 

I've used PI in a previous job, but it's been about ten years...  My current company just implemented a PI system, and I seem to have forgotten just about everything I used to know about it.

 

I'm looking for an efficient way to return, for a given time frame, for each time a tag's value goes from "Off" to "On", how long it stayed in the "On" state.  I guess I'm envisioning using DataLink and having two columns - one with a timestamp and one with the length of time in the "On" state, or just one column with the length of time.  I need to get the info for a few months of jistorical data, so creating new PE tags to facilitate this isn't a good option.  Any help is appreciated.

 

Thanks,

 

Jake


Viewing all articles
Browse latest Browse all 1120

Trending Articles