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

Data Archive Reference

Boolean values

  • Last UpdatedJan 13, 2023
  • 1 minute read

When a field in any table is a Boolean flag, for example the step flag in the PIPOINT table, the input data can be specified as:

1 / 0
Yes / No
True / False

piconfig always sends the data to the table as a string as explained above.

The table owner, in this example PI Base Subsystem, interprets the incoming string as a Boolean value 1 / 0.

This can cause some confusion in the digital states table when states are defined as the strings 1, 2, 3, and so on. We recommend that you configure digital states like this: "One, Two, …" or "State1, State2, …"

Similarly, to define the states "true", "false", make a set with "false" in the first position followed by "true" to correspond to 0 and 1. Alternatively, modify the names slightly; such as "S-true", "S-false".

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