LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Breaking up a string

Hi,

The data obtained from my multimeter using GPIB returns a string consisting
of +NOHM108.379. I would like to break this string and only retained the
108.379. Can someone help?
0 Kudos
Message 1 of 3
(2,640 Views)
"jloh" wrote in message
news:3a66ce43@newsgroups.ni.com...
> Hi,
>
> The data obtained from my multimeter using GPIB returns a string
consisting
> of +NOHM108.379. I would like to break this string and only retained the
> 108.379. Can someone help?
>
>
>
Hi

"From Exponential/Fract/Eng" is what you're looking for. This can be found
in the "Additional String to Number Functions" sub-palette of the "String"
palette.

Regards

Keith Fuller
0 Kudos
Message 2 of 3
(2,640 Views)
If the string consistently has NOMH at the beginning you can use the 'Match
Pattern' function found in the string section, search for NOMH, and then
use the output 'after substring' for your data. Another alternative (if
there is always 5 characters before your data) is to use the 'string subset'
function and set the offset.
"jloh" wrote:
>Hi,>>The data obtained from my multimeter using GPIB returns a string consisting>of
+NOHM108.379. I would like to break this string and only retained the>108.379.
Can someone help?>>>
0 Kudos
Message 3 of 3
(2,640 Views)