LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlay runtime data on top of excel data

Solved!
Go to solution

Hi all,

 

I have data from Excel that I would like to plot on a graph in LabView, then as the program is collecting data, I would like to overlay the current data on top of the Excel data as a visual to make sure that the test is running well.

 

Does anyone know where an example of such a vi might be?  Or maybe you can give me some hints on how to do this?

 

Thanks for any help,

Matt

0 Kudos
Message 1 of 6
(3,267 Views)
oh I'm sorry I forgot to mention I have Labview 2009
0 Kudos
Message 2 of 6
(3,265 Views)

Hello,

 

Basically, you would first load your data into LabVIEW and have that be your initial array. You would then build an array within a loop that reads your runtime data. The attached example shows the general concept.

 

-Zach

0 Kudos
Message 3 of 6
(3,232 Views)

Zach,

 

thanks so much for getting back to me.  How would you manipulate this code so that if I were to hit a stop button that it would stop execution of the for loop?

 

Thanks again,

Matt

0 Kudos
Message 4 of 6
(3,223 Views)
Solution
Accepted by topic author Matt-UHart

Hello,

 

If I did not have a maximum number of iterations, I would use a while loop instead. Otherwise, if there is a maximum number of iterations, a stop terminal can be added to a for loop by right clicking the loop border and the selecting the option for a conditional terminal.

 

-Zach

0 Kudos
Message 5 of 6
(3,215 Views)
Great thank you this works perfectly.
0 Kudos
Message 6 of 6
(3,205 Views)