Using Configuration File VIs

Use the Configuration File VIs located on the Functions»File I/O»Configuration File VIs palette to read and create standard Windows configuration settings (.ini) files and to write platform-specific data, such as paths, in a platform-independent format so that you can use the files these VIs generate across multiple platforms.

Complete the following steps to use the Configuration File VIs.

  1. Use the Open Config Data VI to open a reference to a configuration data object. A configuration data object is simply a preference or setting for the configuration of your operating system.
  2. After you open the reference to the configuration data object, use the Read Key and Write Key VIs for each data type to read and write values entered by the user.
  3. Close the reference to the configuration data object using the Close Config Data VI. You can write the current contents of the configuration data object to a configuration settings file by saving the VI.
Note  LabVIEW does not write the file until you call Close Config Data VI with the write configuration file? input set to TRUE.