Example Code

Community Example:Create graph of data from Excel and add a series

Code and Documents

Attachment

Download All

Overview

Creating a graph in LabVIEW with data from an Excel sheet. Then adding data using the NewSeries method of the SeriesCollection class.

Description

This VI demonstrates how to add data to a Excel sheet through ActiveX calls. It then takes the data from the sheet and creates a graph with those results. I based most of the VI on one that was mentioned in a forum discussion, which can be found here:
http://forums.ni.com/t5/LabVIEW/How-do-I-plot-multiple-series-in-Excel/m-p/265865/highlight/true#M14...

with the post highlighted. What I added was the ability to add data to the graph using the SeriesCollection.NewSeries method.

Steps to Implement or Execute Code

  1. Select if you want to add a series or not.
  2. Run the VI

Requirements

Software

LabVIEW 2010 and later

Hardware

None


Additional Images

Vi Snippet.png

Paolo F.
National Instruments
Applications Engineer

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

Comments
Nickkos
Member
Member
on

Thank you!

Contributors