Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

Comparing a digital state to a string point

  • Last UpdatedOct 04, 2024
  • 1 minute read

If you want to compare a digital state to a string point, use the DigState function to convert a string to a digital state explicitly. For example, the following are different:

If 'StringTag' = "Shutdown" then 0 else 1

If 'StringTag' = DigState("Shutdown") then 0 else 1

The former is true if the string point contains the string "Shutdown" while the latter is true if the point contains the digital state Shutdown.

TitleResults for “How to create a CRG?”Also Available in