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: 

Some instruments return just strings

Does anyone have a god general purpose code for conversion of strings to
numbers.
It should accept: e.g. the string -17.6e-4 and convert it to (real):
-1.7*10^(-3)
Peter W
0 Kudos
Message 1 of 3
(2,982 Views)
Use "Scan From String" that founds on String palette. Double click on it and edit format string parameter.
0 Kudos
Message 2 of 3
(2,982 Views)
KIMIC Weijnitz Peter wrote in message news:<3DA40882.B213C1F0@mic.ericsson.se>...
> Does anyone have a god general purpose code for conversion of strings to
> numbers.
> It should accept: e.g. the string -17.6e-4 and convert it to (real):
> -1.7*10^(-3)
> Peter W

From the LabVIEW main screen, click on "Find Examples", search
for "strings". An "Extract Numbers.vi" should be there. It
may be overkill for what you want - just strip it down.

Les Hammer
Les.Hammer@CompleteTest.com
Complete Test
P.O. Box 6
Loveland, CO. 80538
0 Kudos
Message 3 of 3
(2,982 Views)