NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I implement the function atof in TestStand?

Hi,
 
I would like to convert a string to a number.....same as   num = atof(aString);
 
How do you do it with TS functions?
 
Thanks
 
0 Kudos
Message 1 of 3
(2,995 Views)

Val(locals.MyString)

Documentation is in the Expression Browser>>Operators/Functions Tab>> Functions - Numeric>>Val

0 Kudos
Message 2 of 3
(2,991 Views)
Rafi,
 
There is an expression function used to convert strings to numbers.
 
Val( string, <isValid> ) ->Converts a string to number.

Hope it helps.

 

Antonio Lie.

Message Edited by Antonio Lie (NI) on 10-04-2006 11:19 AM

0 Kudos
Message 3 of 3
(2,990 Views)