cw.ng

Check whether any value exists in the tag within 7 years

Discussion created by cw.ng on Aug 4, 2011
Latest reply on Aug 4, 2011 by hanyong

Hi everyone,

 

We want to create a program to find the tags which do NOT have values within 7 years. Therefore we can use the following code to check whether the values exist.

 

RecordedValues("Tag Name", Now-7years, Now, ....)

 

Since we have lots of tags in the PI Server, is there any better way to find?

 

We checked the Help manual, there exists a Property called LastValueChecked. As we haven't upgraded to newest PISDK version, can we use this property to achieve our goal?

 

Alternatively, is there any better way?

 

Please advise. 

 

CLP Power Hong Kong Ltd.

Outcomes