Example Code

Use a Table Control to Write to and Read from Spreadsheet (XLS) 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

Overview

This VI allows the user to input test parameters, save them to disk and retrieve saved parameters.

 

Description

This VI allows the user to input test parameters, save them to disk and retrieve saved parameters. Once the parameters have been specified, the user can then save data to disk. Most of the emphasis in this VI is focused on the Table Control and how to best implement in a real-world testing scenario. Compare this with a Multicolumn Listbox control.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Specify the address of log file.
2. Run VI.
3. Read table values and modify first and second channel values.
4. Press log button to modify log file.
5. Press read button to observe and read the modified log file.

 

Additional Information or Resources

 

 1.PNG2.PNG

 

 

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

 

David G
Sales Engineer - SE Michigan & N Ohio
National Instruments

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

Comments
mekici
Member
Member
on

thanks..