LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from text file and plot in real time

Hi. My goal is to read some data from a text file that another program is coninually updating and plot this data in real time as the other program updates the data.

Right now I am still working on just reading the data from a text file and plotting it.  I have successfully read a line of data from a text file and placed it in a numberic array, but i am having problems plotting it all on the same graph.  The array I am using is 10 X1 with the first element being the time and the rest of the 9 are the variables i wish to plot vs. time.  I have been doing this with an xy plot, but I have only been able to plot each variable on its own plot individually.  I want them all on the same plot.  Also I would like all of the data to remain on the screen.


I have attached my VI and the text file.

Thanks.

Message Edited by jgkempen on 09-06-2007 04:52 PM

Download All
0 Kudos
Message 1 of 2
(2,921 Views)
With the XY graph, you will need to format your data so that you have arrays for your X values as well as the other 9 Y values.  From there, you can bundle them together, build an array of XY data, and plot as shown in the image below:
 
 
Regards,
 
Craig D
Applications Engineer
National Instruments

Message Edited by Craig D on 09-10-2007 06:40 AM

0 Kudos
Message 2 of 2
(2,883 Views)