Jump to content

read from spreadsheet file wrong!


Recommended Posts

Dear Everyone,

I tried to read data from txt or xls file, but failed.

The data from txt were lost with decimal, e.g., my data should be 1.618, but the vi gets 1;

The data from xls were more ridiculous, giving 0.

Does anyone know what happened?

 

Thank you very much for concern.

The Problem with txt has been solved, according to ned´s advice. The labview is expecting 1,61 instead of 1.61, so crazy.

But the Problem with xls is still there, nothing could be read out.

The files are enclosed, thanks again for attention

post-53216-0-29595100-1423426924.jpg

Open Data File.vi

Al2O3.txt

Al2O3.xls

Edited by Flyingbear
Link to comment

Wire the string "%.;%.5f" (without quotes) to the format terminal. That will change the localisation for the read function to a decimal point regardless of the OS setting (it will truncate the first two entries because they are commas and the rest are decimal point).

 

Read From Spreadsheet File VI doesn't read Excel files, only text files.

  • Like 1
Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.