LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine if string represents a valid numeric

Using Labview (6.1), what is the easiest way to determine if a string represents a valid numeric?
0 Kudos
Message 1 of 2
(2,466 Views)
Try using the "Scan From String" function on the string palette. Using a format specifier of "%f" or "%d" will try to format the string into a number. If the string contains anything besides numbers, the function should generate an error.

Ed


Message Edited by Ed Dickens on 10-03-2005 03:03 PM



Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 2
(2,461 Views)