Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

graphing aquired serial data

Hello,
 
I am fairly new to Labview and I have written a program that will acquire the data I am sending from my device via rs232 to my computer.  I can see the data and store the data, but I am having a problem displaying the data graphically as well as in table format.  I would appreciate any help that you could give me.  Thank you very much.
0 Kudos
Message 1 of 4
(3,248 Views)
A table displays strings while a graph requires numeric data. There are several string to number conversion functions on the string palette.
0 Kudos
Message 2 of 4
(3,243 Views)

For the graph, I have converted the data into numbers.  I am getting numbers between 0-5 to 2 decimals.  I can see these numbers and I can store these numbers, but I cannot graph the data continuously. 

For the table, I have converted the data into a string format.  But again, I am having trouble with it being continous.  It will display one number at a time, as they are being collected, but will not keep a running tab of the data collected over time.

I appreciate your help!

0 Kudos
Message 3 of 4
(3,241 Views)
If you are writing a new 2D array to the table with each iteration, you are deleting the old information. You could use a shift register to keep the table information and add a new row /column with each iteration with the Build Array function. The same thing applies if you are using a waveform graph. You could a shift register here but it's simpler to just use a chart. Please note that using the Build Array over an extended period can cause severe slowdowns in your program as LabVIEW has to constantly resize the array.
0 Kudos
Message 4 of 4
(3,234 Views)