01-29-2019 10:07 AM
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"
01-29-2019 11:01 AM
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.