From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a csv file with a large number of columns

Solved!
Go to solution

Hello

 

I have been attempting to read data from large csv files with 38 columns by reading a line using readline and scanning the linebuffer using scan.

The file size can be up to 100 MB.

 

Scan does not seem support the large number of fields.

 

Any suggestions on reading the 38 comma separated fields. There is one header line in the file.

 

Thanks

0 Kudos
Message 1 of 4
(3,498 Views)
0 Kudos
Message 2 of 4
(3,492 Views)
Solution
Accepted by topic author Eastern

Did you consider using the 'rep' modifier? You may find examples in the help, search for 'String with Comma-Separated ASCII Numbers to Real Array'

0 Kudos
Message 3 of 4
(3,491 Views)

Thanks

0 Kudos
Message 4 of 4
(3,485 Views)