NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

lock Multiple locks

I have a sequence that use 3 different equipment.

 

I use Locks all along my sequence because I am test 4 units in parallel.

 

To reduce test time I would like to start 3 threads simultaneously  for each devices. (Devices like Power Supply, NIDaq and spectrum)

 

But before lunching the 3 threads simultaneously, I want the 3 locks to be free to not having to wait to long for measurements to complete. 

I try to Pass an array to lock multiple locks but it doesn't seems to works as expected. Locals.loackArray

 

Locals.lockArray[0]="LockNiDaq", Locals.lockArray[1]="LockSpectrum",Locals.lockArray[2]="LockPS"

 

 

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

I solve my problem by locking with Array of locks, then launching my 3 threads and then releasing each lock.

 

It would be good to being able to unlock an Array of locks.

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