AnsweredAssumed Answered

String Builder from Digital State

Question asked by jdjohnstn on Apr 22, 2019
Latest reply on Apr 23, 2019 by jdjohnstn

Is there a String Builder function that will give the string result "Good" for digital state 'Good' or the original string value for strings (likewise, give any other system digital state value, when those are encountered)?


Older PI Interfaces write a status to a string tag such as ' Status' and when there is an error will put in a string value such as '70 | Too many bad items'. When the interface is good, it writes the system digital state 'Good'. The problem is that the digital state 'Good' is interpreted by the string builder as a Bad value, resulting in a string of "Bad input value in ''Device Status'': Good"