LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a value from a string?

Hello folks

 

I'm heaving trouble to get a valeu from a string.

I got a code here on the forum to read temperature and pressure (current) and it get's me a 2D string array. 

I want to use those values to connect to indicators but I can't connect to them as a string...

What I have is in the following image... I'm getting only integer number from the string.

How can I solve this?

 

0 Kudos
Message 1 of 4
(2,996 Views)

I'm guessing you are in Europe?  The comma (,) is your decimal separator?  Try using "%.;%.5f" as your string format.  This will tell the Scan From String to use the decimal point as the separator.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,981 Views)

EUREKA! 
It worked! Thank's alot.

 

PS: I'm from Brazil Smiley Happy

 

 

0 Kudos
Message 3 of 4
(2,967 Views)

mateusutz wrote:

PS: I'm from Brazil Smiley Happy


Same rules as Europe, just in in SW Hemisphere.  When dealing with anything international, you really have to watch out for those decimal separators.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,963 Views)