Read Key (Boolean) VI
- Updated2025-07-30
- 3 minute(s) read
Reads a value associated with a key in a specified section from the configuration data identified by refnum. If the key does not exist, the VI returns the default value. This VI supports multibyte characters in strings. Wire data to the default value input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
section
—
section is the name of the section from which to read the specified key.
refnum
—
refnum is the reference number of the configuration data.
key
—
key is the name of the key to read.
default value
—
default value is the value to return if the VI does not find the key in the specified section or if an error occurs.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out
—
refnum out is the reference number of the configuration data.
found?
—
found? is TRUE if the VI found the key in the specified section.
value
—
value is the value of the key.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\File IO\Configuration (INI)\Configuration (INI) File.lvproj
section
—
refnum
—
default value
—
error in (no error)
—
refnum out
—
found?
—
error out
—