LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting a graph in real-time without reading from a file

Hello there.

I am trying to plot a graph. I have succeeded in plotting the graph by first writing the data to a text file (.TXT), then reading from that text file.

However, I feel this method will take up a lot of memory. Thus, I was wondering whether it is possible to plot the graph directly without first writing it to a text file.

Thanks a million.
0 Kudos
Message 1 of 2
(2,534 Views)
You can use a while loop with a shift register, inside the while loop, put a case structure, and in it, your data aquisition vi. When you get data, use the shift register to append data to the array, using build array (the shift register will go in as an array, and data as an element) just execute the appending state when data is present, and you'll have a real time graph.
Hope this helps
0 Kudos
Message 2 of 2
(2,534 Views)