ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

floating point string format

Hello.

 

I am converting a string to several values, strings and numbers but when I want to convert a part of the string into a float, it seems that only the integer part is converting.

 

Can you figure out what am I doing wrong? I am using LV 8.6.1.

 

Attached is a pic and the vi.

 

Thanks,

Vasilis.

 

float.JPG

0 Kudos
Message 1 of 3
(3,503 Views)

Your attached VI seems to work properly in LabVIEW 2012.

 

You can also define your format string as %8s %4s: %f

leaving out the "4.1".

 

Sorry, I don't have 8.6.1 installed to test it in that environment.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 3
(3,494 Views)

Hello.

 

I solved it. It seems to be a localiazion parameter, I am located in Greece, where the comma is the decimal separator.

So, instead of putting "%4.1f", I put "%.;%4.1f" and it worked.

 

Thanks anyway,

Vasilis.

0 Kudos
Message 3 of 3
(3,489 Views)