Comparing the value of digital and numeric points to strings
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
In performance equations, you can use expressions that compare the value of a digital or numeric point to a string. For example, if the string "Run" is in the state set for digital point PumpStatTag, then the following expression is valid:
If 'PumpStatTag' <> "Run" then 1 else 0
The state set for a numeric point is the System State Set. The System State Set is the default state set for all points and it contains a collection of all the states that any point can use, such as Shutdown, Over Range, and I/O Timeout.
For example, the following expression is true if the numeric point sinusoid contains the digital state Shutdown from the System Digital State Set.
'sinusoid' = "Shutdown"