Jump to content

Spreadsheet String to Array function


Recommended Posts

Hi,

Hope you can help me to find what I'm doing wrong, please see the small attached vi. I'm just trying to convert spreadsheet string to an array of numbers with 1 digit precision but I don't know what I'm doing wrong, I think the format string input is o.k but I'm at this point I'm doubting of everything :wacko: .

Thanks for your support.

cheers,

Jose.

Download File:post-662-1166458178.vi

Link to comment
Edit, dammit your fast Crelf! :o

That's the beauty of my RSS feed :)

Remember, formatting only modifies the reperesentation of the data. In memory, numbers all look the same.

Let's be very clear and careful about the terms we use here: formatting does not modify the representation of the data - the representation of the data is not the same for all numbers. Representation refers to whether a number is a DBL, SGL, U32, I64, etc, and that's very important. What formatting does do is modify the way the data is displayed, and not the actual number itself.

Link to comment
Hope you can help me to find what I'm doing wrong, please see the small attached vi. I'm just trying to convert spreadsheet string to an array of numbers with 1 digit precision but I don't know what I'm doing wrong, I think the format string input is o.k but I'm at this point I'm doubting of everything :wacko: .

Hi,

I think your problem is that you are using the wrong decimal point.

Try the formatting string "%.;%f" instead. This willl force LabVIEW to use a period as decimal character.

In my opinion it is good practice to always specify the decimal character explicitly, since different computers can have different settings.

There is also no need to tell LabVIEW to only read 1 decimal, since it is only a matter of display.

/J

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.