10-26-2012 04:15 AM
Hi
I would read 1st two column from CSV (column1 as Xaxis and Coulmn2 as Y axis) and plot it to waveform graph.
Thanks in advance
10-26-2012 04:51 AM - edited 10-26-2012 05:11 AM
10-26-2012 04:58 AM
Not sure you can with a waveform graph - you can with an XY chart though.
10-26-2012 05:24 AM
Hi Thanks,
I would like to build waveform with the values, attached the Vi.
With XY graph I am getting the right X-Axis value( 2nd graph) but with build waveform the X-axis is not right(1st graph).
Any suggestions.
Thanks
10-26-2012 05:55 AM
Forgot to attach vi
10-26-2012 07:45 AM
How is it not right? Do you have sample data you can give us to help?
10-26-2012 08:14 AM
Smiler123 solution is correct, I am trying to do in Build waveform rather than XY graph.
I attached the file as Xls instead of CSV, its not letting me do it.
10-26-2012 08:29 AM - edited 10-26-2012 08:30 AM
First of all, you need more resolution on your time in the CSV. Secondly, your time is not starting at 0. In fact, it's negative. To get your dt, you should subtract your second element from the first. This will give you the sample rate. But again, you need more resolution on your time.
02-02-2017 10:39 AM
Why would this vi work well with focus-3.xls but not focus-4.xls even though they are of the same format?
02-02-2017 10:46 AM - edited 02-02-2017 10:49 AM
They are NOT the same format. You can see the difference if you open up the files using Notepad.
Focus 3 is a CSV file. You should not give it a XLS extension because it is not an Excel file. Call it .txt or .csv. Technically it is not a CSV file which stands for comma separated values because the values are separated by tabs, not commas. So you really should just call it .txt.
Focust 4 is an actual Excel file, so having an XLS extension is correct. But XLS is a proprietary binary file format. Read Spreadsheet File only reads formatted text files so it does not work on an XLS file.