NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

batch cleanup

I am having some trouble trying to synchronize my batch process. I would like
to be able to terminate particular slots upon test failures and have the threads wait
at the beginning of the  Mainsequence cleanup for the rest of the testing to complete.
 
I've tried batch sychronization, rendezvous, etc. The problem is that
the terminated threads will block until the remaining threads hit any other
type of synchronization step. Then the cleanup will continue which cause some shared
resources to be shut down.
 
Is this the expected behavior? Any ideas of how to do this? Thanks.
 
Bob
0 Kudos
Message 1 of 2
(2,969 Views)

Bob,

It seems that you want to run your cleanup steps after all the threads are done.
You can accomplish that by using the batch synchronization step.
Basically you have to wrap your cleanup section in a batch synchronization section and use the Parallel section type.
This will cause that all the threads enter the section simultaneously.
If you want the cleanup section to be executed only by one thread you can also use a batch synchronization step but you would have to set the section type to 'One Thread at a time".
Take a look to the attached example. (TestStand 3.0 sequence file)
If you have any question let me know.

Antonio Lie.

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