O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with INI files

An INI file is a configuration file that stores constants used in a program. The file consists of sections and keys. Keys are grouped in different sections. This recipe extracts the values from all keys within an INI file and stores them in a cluster so that the values can be retrieved within a program.

How to do it…

To read the values of all keys within an INI file, we create a state machine to iterate through the file, using following steps:

  1. Create the INI file to read. See the following screenshot for the content within the INI file.
    How to do it…
  2. Create a state machine, as shown in the following screenshot. It starts in the Open INI state ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required