AnsweredAssumed Answered

Check for the existance of a tag within a PI analysis

Question asked by AlistairFrith on Oct 28, 2016
Latest reply on Feb 25, 2017 by rdavin

Is it possible within an AF Analysis to check for the existance of a PI tag?

 

We have a requirement for an analysis of the form

IF  TagExists('statusAttribute')
THEN <use status attribute value>
ELSE <use backup method>

 

but I can't see a way to do this, so I have had to revert to something like...

tagCalc = <calculation using 'statusAttribute'>
backupCalc = <calculation using backup method>
result = IF (BadVal(tagCalc)) THEN backupCalc ELSE tagCalc

 

But if the tag doesn't exist, the first calculation throws an error and the analysis gets a yellow triangle. Is there any way to do this without getting warnings?

Outcomes