LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing a graph from an Excel file one value at a time

Hi!

 

I'm trying to create a Labview program that draws an XY graph using pairs of values from an Excel file.

I was able to find some examples of similar programs, but wasn't able to make them work. Even more, I need my program to build graphs gradually, say one pair of values every second. How do I do that?

 

Sorry if I'm asking something obvious & thanks in advance.

0 Kudos
Message 1 of 8
(2,829 Views)

Hi Cube,

 

I was able to find some examples of similar programs, but wasn't able to make them work

So you have a VI with some errors, but you don't want to share this VI with us.

Do you expect any substantial help for this VI?

 

I need my program to build graphs gradually, say one pair of values every second. How do I do that?

Use a loop: add one point per iteration to your plot. Have the loop iterate once per second…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,826 Views)

Yeah, sorry. Should've attached VIs to the original post.

I can't get them to draw graphs using values from the Excel files I specify.

Download All
0 Kudos
Message 3 of 8
(2,781 Views)

Hi Cube,

 

I can't get them to draw graphs using values from the Excel files I specify.

As much as I see those VIs will draw a plot from your spreadsheet data. (Please don't call them "Excel files"!)

When you want to draw them point by point you need to put the graphs into the FOR loops - as I wrote above!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,760 Views)

add one point per iteration to your plot

Alright, and how do I do that?

I realize that the answers to my questions are obvious to you, but please understand that my knowledge of LabView is extremely limited.

0 Kudos
Message 5 of 8
(2,751 Views)

Hi Cube,

 

could you provide your VI for LV2014 (as you did in your last message)?

 

To add one data point to an array in a loop is usually done like this:

check.png

I guess you have seen this (or very similar) while taking the free beginner courses, offered in the "Getting Started" section in the header of the LabVIEW board!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 8
(2,749 Views)

Looks like I've finally made it work.

Thanks a lot for your help,

0 Kudos
Message 7 of 8
(2,744 Views)

Hi Cube,

 

two notes:

- you should initialize the shift registers

- usually you don't need to wire the iteration count of the FOR loop when you use autoindexing input tunnels…

(3rd note: use AutoCleanup before uploading images of your code…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(2,741 Views)