LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to Number Conversion

Solved!
Go to solution

I am getting a string measurement "-2.927184E-04" from the multimeter. I want to convert to the number.  

I am using "Fract/Exp String To Number," but I could not get a number 

 

Screenshot 2026-03-04 114330.png

Please suggest me any solution

 

 
 

 




 
 

 

0 Kudos
Message 1 of 5
(234 Views)
Solution
Accepted by topic author Rshah31

Hi Rahah,

 

remove the quotation marks...

 

Which DMM do you use that sends data within quotation marks?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(229 Views)

Hi 

Thank you, I have also tried this out.  and I am getting output  -2. 

I have also increased number formate. 

output could be  -0.000294 something

I could not got this

0 Kudos
Message 3 of 5
(219 Views)

@Rshah31 wrote:

Hi 

Thank you, I have also tried this out.  and I am getting output  -2. 

I have also increased number formate. 

output could be  -0.000294 something

I could not got this


snip-dec.png

Message 4 of 5
(192 Views)

I personally prefer the scan from string vi to have more control on the format. 

the format string allow to define the decimal point ( %.; )  

Just in case you run into the problem, that a device is using the comma and your local setting is point.  Assuming that the string(or device) always use the same decimal point ...

convert.png

 

edit: and it would work with the quotation marks 😉  

convert2.png

 

or generally speaking with nearly all type of strings and data to exstract

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(165 Views)