NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Assign value to a variable by name

I have some value from a database that I want to assign to specific variable in my sequence.

 

I have a table that has 2 columns: Value`as string and SeqVarName as string

For example: 

Value    SeqVarName

1234     Locals.Name1

abcs      Locals.Name2

 

In my sequence Locals.Name1 and Locals.Name2 already exist as string variable.

 

What is the easiest way to load the values from the database to my sequence variables?

0 Kudos
Message 1 of 2
(2,200 Views)

Hello,

 

If I am understanding the functionality you are looking for, one way to do what you are asking about would be through a Property Loader Step in TestStand.

 

LINK:

Property Loader Step

https://zone.ni.com/reference/en-XX/help/370052R-01/tsref/infotopics/redesignedproploader/ 

 

property loader.PNG

 

Hopefully this will be helpful in loading in your variable values to TestStand. 

 

Best,

Spencer | AE NI

0 Kudos
Message 2 of 2
(2,170 Views)