LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

point and comma decimal separated values

Solved!
Go to solution

Hi,

 

I'm having difficulties getting the right values when converting from string to decimal floating point...

I am recording my annotations (string values) in a BDF+ file format and sometimes the recording device is a Dutch one, writing decimal separated value wit a comma like this: 5,678    but sometimes they record in the US and then i get 5.678

 

Now i want to convert my string values to a decimal floating point (single) is there a way, that the converter accepts both values and allways converts them using the dutch annotation with a comma?

 

Best regards,

Thijs

 

 

0 Kudos
Message 1 of 5
(2,633 Views)
Solution
Accepted by topic author ThijsBoeree

Solved it!!

 

Maybe there's a better way?

 

Anyone?

 

0 Kudos
Message 2 of 5
(2,626 Views)

Hi,

 

Maybe you can use this link.

http://digital.ni.com/public.nsf/allkb/4B259A9CF98AD4628625697E00548EA0?OpenDocument

 

Regards,

Hossein

 

0 Kudos
Message 3 of 5
(2,603 Views)

It was an old solution for LV 6.0

0 Kudos
Message 4 of 5
(2,596 Views)

Hi,

Sorry about that. I found some info and an example (LabVIEW 2011) which is attached in this feedback. 

http://digital.ni.com/public.nsf/allkb/894CF5FE064971BF8625758400014993?OpenDocument

 

Hope this helps!

Regards,

 

Hossein

 

0 Kudos
Message 5 of 5
(2,575 Views)