LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to read calibration data from a file

Solved!
Go to solution

ok thanks. I take your points, but I still think NI should make this clearer.

I will follow the 'read from text file.vi' example as a template

dave

0 Kudos
Message 11 of 17
(1,292 Views)

Why would you follow that example? That makes no sense. The Read From Spreadsheet File will give you what you need in one step, rather than having to put together all the code as seen in that example.

 

That's like taking a flight from San Francisco over to Hawaii, then to Japan, then to India, then to Italy, then to New York, and then to Las Vegas, instead of flying direct from SF to Vegas. Smiley Surprised

Message 12 of 17
(1,288 Views)
oh yes. read from spreadsheet (which is actually a text file!!)
0 Kudos
Message 13 of 17
(1,284 Views)

I'm still struggling to get this to work. See attached for what I've done. It only seems to read in the first column of data...

 

Dave

0 Kudos
Message 14 of 17
(1,282 Views)

sorted. it seems to like CSV for some reason. that is what I will use!

dave

0 Kudos
Message 15 of 17
(1,269 Views)

The problem with your code was that you had too many constants. If you have a tab-delimited text file, then you don't need any of those constants. All you need is this:

 

 

Message Edited by smercurio_fc on 11-19-2008 11:24 AM
Message 16 of 17
(1,248 Views)

I know this has been resolved but I thought an example I wrote might clarify for others what the "Read / Write To Spreadsheet" actually does and the file it creates.

I am a beginner so I have to write little bits of code to find out how it acts.

 

 

Labview 8.5
Meas Studio 2008
0 Kudos
Message 17 of 17
(1,195 Views)