05-22-2010 10:36 AM
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
05-24-2010 07:51 AM
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