NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

create local variable by an expression

Hi!
 
I searched the discussion forum, but I couldn't find any information about how to create a local variable using an expression.
The TestStand version I'm using is 4.0.
 
lets say, if I wanted to create a variable called "foo" as integer. What will the expression be?
The expression will be called from the step-type "Statement".
 
 
Thanks
 
 
 
 
 
Best regards
 
Selvakumar
0 Kudos
Message 1 of 2
(2,865 Views)
Locals.SetValNumber("Foo", 1, 0) will create a variable named Locals.Foo, and initialize it with a value of 0.

The variable will only exist for the lifetime of the execution.

Allen P.
NI
0 Kudos
Message 2 of 2
(2,856 Views)