NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load Labview cluster with Teststand database lookup table?

I have a teststand step where I call a labview VI that has acluster in it.

 

What I am try to do is the following:

I have an Access database that contains set-points of theanalog signals

I want to write a “for loop” in the teststand to load the set-pointinto the Labview cluster. 

 

Any one knows how to load teststand array(lookup table ofdatabase) data into labview cluster  without having an “if” statement?

 

I do now want to create an “if” statement that says..

If (locals.sginal_name == SIGNAL_NAME1”)

 then

labview cluster.setpoint1 = locals.database_setpoint1

 

 

Thanks,

Anteneh

0 Kudos
Message 1 of 2
(3,439 Views)

Hi,

 

You could create a lookup string which is based on a constant part and a counter (which could be the step loop counter RunState.LoopIndex)

 

eg

Locals.database_setpoint = Evaluate("Locals.database_setpoint" + str(RunState.LoopIndex+1)) - I am using the Step Index counter but if you are using a For loop then you would use the index you have defined for that loop.

 

In your LabVIEW step you would pass Locals.database_setpoint into your cluster value. But this really depends how you have defined the input terminals to your VI.

 

Maybe you can post a small example

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,409 Views)