02-08-2010 02:36 PM
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
Solved! Go to Solution.
02-08-2010 02:42 PM
02-09-2010 10:53 AM
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
02-09-2010 12:39 PM
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
02-09-2010 12:54 PM
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
02-09-2010 03:57 PM