| Download Help (Windows Only) |
Owning Palette: File I/O VIs and Functions
Use the Configuration File VIs to create, modify, and read a platform-independent configuration file. Example
![]() | Note You cannot include comments or any other information in a key string. |
The VIs on this palette can return general LabVIEW error codes.
| Palette Object | Description |
|---|---|
| Close Config Data | Writes data to the platform-independent configuration file identified by refnum and then closes the reference to that file. |
| Get Key Names | Gets the names of all keys in the specified section from the configuration data identified by refnum. |
| Get Section Names | Gets the names of all sections from the configuration data identified by refnum. |
| Not A Config Data Refnum | Determines whether a configuration data refnum is valid. |
| Open Config Data | Opens a reference to the configuration data found in a platform-independent configuration file. |
| Read Key | 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. The data type you wire to the default value input determines the polymorphic instance to use. |
| Remove Key | Removes a key in a specified section from the configuration data identified by refnum. |
| Remove Section | Removes a section from the configuration data identified by refnum. |
| Write Key | Writes a value to a key in a specified section of the configuration data identified by refnum. This VI modifies data in memory. To write data to disk, use the Close Config Data VI. The data type you wire to the value input determines the polymorphic instance to use. |
Refer to the labview\examples\file\config.llb for examples of using the Configuration File VIs.