Example Code

Read data from INI file Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This VI reads different types of data from an .ini file

  

Description

The INI file format is an informal standard for configurations files for some platforms or software. INI files are simple text files with a basic structure composed of sections, properties and values. The name "INI file" comes from the commonly used filename extension .INI, which stands for "initialization". 

This VI opens an INI file, which its path is provided by the user using the Configuration File Path control, and reads multiple types of data types from the file- Boolean, Integer and string

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

     1.Browse to the test.ini file location on your disk, and provide it to the Configuration File Path control

     2. Run the VI

     Notice that the indicators now reflect the information from within test.ini file

 

Additional Information or References

VI Block Diagram

Read data from INI file LV2012 NI Verified BD.jpg

  **This document has been updated to meet the current required format for the NI Code Exchange. **

National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
FlavioPuhl
Member
Member
on

Very usefull.  Thanks

But how can you initialize a Multicolumn ListBox, for example??  Line-by-line?

Skype: flavio.luiz.puhl.junior