Example Code

Manipulate Excel Data in 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

The Read_Excel_Values.llb is a collection of subvis that can be used to manipulate data stored in a Excel spreadsheet.

 

Description

The Excel Reader.VI is the main example of how to use the subvis to connect with Excel using ActiveX controls. The other vis are the actual activex controls that interface with the Excel spreadsheet. This works with Excel 2003, 2007, 2016 but hasn't been tested on anything else. The code could be manipulate to allow for future Excel versions.


Requirements
LabVIEW 2012 (or Compatible)

 

Steps to Implement or Execute Code

  1. Download the "Read_Excel_Values.llb" from this website

  2.  Open the LLB and explore "Get Excel values.vi" 

Main VI Snippet:

Read_Excel_Values LV2012_NI_Verified.png

 

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

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

Comments
pflores
NI Employee (retired)
on

Check out this related example: http://decibel.ni.com/content/docs/DOC-10546

---

Peter Flores
Applications Engineer
Mark20
Member
Member
on

Excellent!  Let me access test vectors stored in a spreadsheet without having to convert the spreadsheet to a another format.