02-24-2014 10:46 AM
Hallo,
I've been struggling with reading a comma separated value (csv) file from another instrument (attached). I need to plot this data for analysis. I have 5 column of data with numbers of rows, the first three row is the information of the measurement. I want to read 4th row as string and rest of the row as numbers. I want to plot 2nd column (i1) with respect to TIMESTAMP; 4th column(u2) wrt TIMESTAMP. And finally plotting i1 (x-axis) vs.. u2 (y-axis) in labview. Could anyone help me.
In excel its so easy to plot but I don't know how its done in labview.
02-24-2014 11:15 AM
What have you tried? How much do you know about LabVIEW, have you ever done any LabVIEW programming?
Cameron
02-24-2014 11:34 AM
Start by opening the file. Then use the Read Text File function. You can right-click on it and configure it to read lines. First make it read 3 lines (this is your extra header data). Then make it read a single line. That will give you your channel names. Then read the rest of the file (disable the read by line and wire a -1 into the number of bytes to read). Then use the Spreadsheet String to Array function to give you your data.
I would recommend going through the LabVIEW tutorials if you are really new at this.
02-24-2014 11:41 AM
Hallo Cameron,
Thanks for the quick response. I am just bigineer in Labview. I just tried to reading csv file using the readfromspread sheet file.vi by using the excel file path. As I saw some examples in forum. But I am not able to read specific two columns and plotting them at same time.
regards
neezan
02-24-2014 11:54 AM
neezan wrote: But I am not able to read specific two columns and plotting them at same time.
Index Array. Only wire the colums index.