LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting integer from string.

i would like to ask, if i read a string from a device, and the string
consist of integer and letter, for example: P= 6.13 dB rel
but i only want to get 6.13 from this output STRING
can i do that? and how?

thanks a lot!!!
0 Kudos
Message 1 of 3
(2,701 Views)
Try this vi.

Nadav
0 Kudos
Message 2 of 3
(2,701 Views)
Crystal meinte am 26.06.2002 10:56:

> i would like to ask, if i read a string from a device, and the string
> consist of integer and letter, for example: P= 6.13 dB rel
> but i only want to get 6.13 from this output STRING

Try following format string for the function "scan from string":

"P= %f dB rel"
"P= %f" (should also run)

greets

--
Henrik Skupin
0 Kudos
Message 3 of 3
(2,701 Views)