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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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