LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display a .csv file as a real time waveform using labview

Hi folks.
 
As stated, Im looking to display a .CSV file (obtained via RS-232, example; 100,101,102,102,102,103...) as a waveform in real-time. What is the best way to approach this? Im thinking LabVIEW. I have version 7.1 but am not really experienced in using it. I'll give anything a go though. Also, I have Visual Studio 2005, so I was thinking VB???
Thanks in advance!
 
Simon.

Message Edited by simonious on 10-26-2007 04:13 AM

0 Kudos
Message 1 of 21
(4,953 Views)
Have a look at this VI.

Add a convert string to number function behind it.

André

Message Edited by andre.buurman@carya on 10-26-2007 01:08 PM

Regards,
André (CLA, CLED)
Message 2 of 21
(4,944 Views)
Thanks for that. I cant seem to acces the block diagrams etc, its password protected. Also, I should have mentioned that the data is constantly being transmitted via RS-232 in .CSV format. I want to display this data as a waveform in real-time.
Thanks!
0 Kudos
Message 3 of 21
(4,920 Views)
The process is pretty simple with the Spreadsheet to Array function. A basic application is shown below.
Message 4 of 21
(4,909 Views)
Cool, looks simalar to what I was "trying" to put together. Big help, thanks guys.
0 Kudos
Message 5 of 21
(4,906 Views)

Andre,

Is it such a high-complexity code that it is password-protected... ?! Smiley Happy

Can you post one without password? Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 21
(4,877 Views)
No, try "crankstel", without the quotes.

I forgot the VI had a password.Smiley Surprised

I thought lets be nice a give away a VI in LV 7.1, so more people can access it.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 7 of 21
(4,875 Views)

Smiley Very Happy Thanks for that. But Is this process adequate for real time? Itt seems to me that the visa is collecting 100 bytes into its buffer and then displaying them. I need to constantly be displaying the waveform.

 

Thanks for all the help.

0 Kudos
Message 8 of 21
(4,852 Views)
I came up with this... At the moment it captures 1000 bytes of data from the serial port and plots the .CSV data (integers) as a waveform. It works well except I need this to work continuously (real-time). I added the while loop, but it doesnt seem to do anything. Any hints? Thanks!
0 Kudos
Message 9 of 21
(4,834 Views)
Slight modification, I added a chart instead. I can now see a real-time representation but the chart tends to reset every now and then. I think this is due to the VISA input "number of bytes to read". If i have it on 5 it will work when the data is --> 1199,2299,2255,5599, etc (4 numbers then comma), but when this happens --> 5509,5544,339,555, etc (one value or more with 3 numbers then comma) the chart will start resetting etc. Im not sure how to overcome this??? The new VI is attached.
0 Kudos
Message 10 of 21
(4,828 Views)