07-03-2016 10:58 PM
Hi,
I am trying to read the attatched .csv file (attached) which is formated with the ";" delimiter.
When I read the file using the read delimited spreadsheet VI I get an output array with a new line created between each row of data.
Does anyone know why this new line is been created and how I might be able to read the file?
(I am able to resave the file to comma delimieted format using excel, and read successfully however my application is such that I need to read the original semicolon delimiter format)
Thanks,
Richard
07-03-2016 11:13 PM
07-03-2016 11:26 PM
Heres the read output of the semicolon delimiter defined file:
Heres what I want:
07-03-2016 11:28 PM
Please see message above
07-04-2016 01:19 AM
The file uses the DOS end of line indicator <cr><lf>. When reading the file into LabVIEW you should enable the option "convert EOL" on the read operation to let LabVIEW convert the platform specific EOL indicator into its own native <LF> EOL indicator.
07-04-2016 01:21 AM
I changed your file to CSV Extension, It works fine.
whats the Need to have a csv file with .xls exten?
07-04-2016 06:18 AM
07-04-2016 06:32 AM
A slight correction:
Windows still generally uses <cr><lf> like DOS for ASCI text files. MacOS Classic used a <cr> and most Unix variants usually <lf>. LabVIEW as a multiplatform application had to standardize on one of them for internal use and decided for the <lf>, but the text file read and write functions have an automatic EOL conversion option.
07-05-2016 01:05 AM
Thanks for the help!
After doing some more research into the file type the csv file i realised is coded using unicode.
Simialr to the problem here: http://forums.ni.com/t5/LabVIEW/Labview-not-reading-csv-file-properly/td-p/2855176
I was able to use the same solution