Read and create .ini configuration settings files with the Configuration File VIs. Configuration files let you store platform-specific data such as paths in a platform-independent format.

You can use the files these VIs generate across multiple platforms.

Note You can use the Configuration File VIs for Windows configuration settings files only in the ANSI format.

To use the Configuration File VIs, complete the following steps.

  1. Open a reference to a configuration data object by adding the Open Config Data VI to the block diagram.
    A configuration data object is a preference or setting for the configuration of the operating system.
  2. To read and write values entered by the user, use the Read Key VI and the Write Key VI for each data type.
    Note The Write Key VI modifies only data in memory.
  3. Close the reference to the configuration data object with the Close Config Data VI.

    You can write the current contents of the configuration data object to a configuration settings file by running the VI.

    Note LabVIEW does not write the file until you call the Close Config Data VI with the write configuration file? input set to TRUE.