LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import Multiple Columns from a Delimited File

Sirs,
 
I am working on trying to import a calibration data file for a sensor.  I would like to interpolate the data as I recieve it from my DAQ (Agilent).  In order to do this, I would like to read in a tab delimited file, and run the Interpolate VI.  However, when I run the Read from SpreadSheet VI without any input wiring, I select the data file, and output to an array, I am only able to import the first column of data.  Is there another way to do this, or have I forgot to set a parameter? 
 
Please advise
 
Thanks,
 
Joseph Jankowski
0 Kudos
Message 1 of 6
(2,895 Views)
There are two array outputs from the Read Spreadsheet VI, If you want more than one column you need to connect to the 2D array output.
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 2 of 6
(2,891 Views)

Unfortunately I have connected to the 2-D output.  Under this output, I am still only getting the single column output.

 

I also tried to use the format string to array function, and this also only produced one column.

 

Thanks,

 

Joe

 

 

0 Kudos
Message 3 of 6
(2,887 Views)
Is the data all numerics and is the delimiter truly a tab? Can you post a segment of the file you're trying to read?
0 Kudos
Message 4 of 6
(2,882 Views)
If you are attached to the 2-D array then there is an issue with the format of the file you are trying to import. What is the file type of the calibration file. If you could provide an example that would help.
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 5 of 6
(2,879 Views)

Problem Solved.

Although the files appeared to be tab delimited, they were not.

I replaced the spaces with Tabs, and the import worked well, using both methods.

Thanks All,

 

Joe

0 Kudos
Message 6 of 6
(2,875 Views)