Owning Palette: File I/O VIs and Functions
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Configuration File VIs to create, modify, and read a platform-independent configuration file.
Note
|
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. Wire data to the default value input to determine the polymorphic instance to use or manually select the instance. |
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. Wire data to the value input to determine the polymorphic instance to use or manually select the instance. |
Refer to the Configuration (INI) File.lvproj in the labview\examples\File IO\Configuration (INI) directory for an example of using the Configuration File VIs.