Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Configuration File VIs

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info
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 ObjectDescription
Close Config DataWrites data to the platform-independent configuration file identified by refnum and then closes the reference to that file.
Get Key NamesGets the names of all keys in the specified section from the configuration data identified by refnum.
Get Section NamesGets the names of all sections from the configuration data identified by refnum.
Not A Config Data RefnumDetermines whether a configuration data refnum is valid.
Open Config DataOpens a reference to the configuration data found in a platform-independent configuration file.
Read KeyReads 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 KeyRemoves a key in a specified section from the configuration data identified by refnum.
Remove SectionRemoves a section from the configuration data identified by refnum.
Write KeyWrites 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.

Example

Refer to the labview\examples\file\config.llb for examples of using the Configuration File VIs.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit