Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

To read & save data from serial port (write to .csv file), and plot data as wave

Hi,

I've been stuck with this problem for weeks and really need some help. I've been searching a lot but I can't find a proper solution.

I am trying to use Labview to plot and display some parameters of a data acquisition system for a project.

 

The data acquisition system is connected to a computer via serial connection through COM 1 port.

The data acquisition system sends a serial stream of data (ASCII string with baud rate 19200), as shown below (from HyperTerminal),

 

01:00:26,933.24,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,

01:00:27,931.54,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,

 

The serial data stream consists of a time stamp (as 1st data), followed by 16 individual channel data, separated by comma "," and each stream ending in return "\n". Each value of the data ranges from 1 to 6 digits (value of -5000 to 15000).

 

 I have no problem reading this values correctly using HyperTerminal, but I have problem to plot and display individual parameters of this serial string in Labview. I want to save the entire data in  a “.csv” file corresponding to all the 16 channels with time stamp and plot each individual channel parameter in a graph with time on X-axis.

 

I am relatively new to Labview hope I can learn a lot from your help.

 

 Thank you

0 Kudos
Message 1 of 2
(3,326 Views)

Why are you reposting the same question that you posted yesterday and which was answered.

duplicate post from yesterday

0 Kudos
Message 2 of 2
(3,323 Views)