10-25-2024 02:43 AM
I tried to read an email data of csv file using read delimited spreadsheet ,but it causing many bugs like it leaves space in between characters, empty array between a row and mismatch data in column of some rows.
10-25-2024 02:52 AM
Hi kuberr,
@kuberr wrote:
I tried to read an email data of csv file using read delimited spreadsheet ,but it causing many bugs like it leaves space in between characters, empty array between a row and mismatch data in column of some rows.
And what is your question?
(ReadDelimitedSpreadsheet doesn't cause those "bugs", but most probably the data you feed in.)
10-25-2024 03:22 AM
There are two possibilities:
Attach your CSV file and the VI you are using to read it and we will tell you what's wrong.
10-25-2024 04:23 AM
I guess someone have created "columns" by using space or different amount of tabs to line up the text file.
10-25-2024 04:40 AM
Copied/botted from here:
10-25-2024 07:21 AM
CSV files often contain quoted text. The quotes allow for multiline data in one field. Quoted data including a comma can be incorrectly interpreted as a new column.
For an example of parsing a file containing quotes and commas, try the vi in this post:
https://forums.ni.com/t5/LabVIEW/Read-csv-file-with-double-quotes/m-p/1591640/highlight/true#M580390
10-25-2024 07:57 AM
SLL Toolkit's spreadsheet VIs support quoted strings in CSV files,
10-25-2024 10:29 AM - edited 10-25-2024 10:31 AM
Well you should attach the CSV file so we can look at.
If you open the CSV file in question with Excel what does it look like?
It should look the same as the array "Read Delimited Spreadsheet" outputs as long as you are using the correct format specifier.
There can be issues when reading a CSV that has both text and numbers because an array can only be one data type.
So if your CSV contains both strings and numerics you have to