NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to have a Socket wait in Cleanup for all other Sockets to complete before running "Batch Cleanup" steps

I want to have a socket wait after performing socket specific cleanup steps for all other executing sockets to enter and finish their socket cleanups. Once all sockets have completed their socket cleanups, any Batch cleanup steps can then execute.

Using the Batch Syncronization Step Enter and Exit does not appear to work properly, it prematurely exits the Socket Cleanup if other Sockets enter another Batch Syncronization located within the main sequence.

Basically what I want is for a socket that exits the main sequence early to wait at a set point in the Main Cleanup until all other normally executing sockets are done before continuing on.
0 Kudos
Message 1 of 4
(3,359 Views)
Have you tried placing a Rendezvous in your Main Cleanup?
0 Kudos
Message 2 of 4
(3,359 Views)
Yes. Unfortunately, I use other Synchronization steps within my MainSequence and if I am at the Rendezvous in cleanup, all Sockets hang at the nearest Synchronization step, be it Batch or Rendezvous. Using a Batch Wait in Cleanup doesn't work either because they don't seem to be nested properly. The terminated cleanup step will sit at the Batch Start, but as soon as the rest of the executing sockets get to the next batch start/stop combination that I use in the Main section of the Main Sequence, the Cleanup batch executes and completes. It waits, but not long enough unfortunately.
0 Kudos
Message 3 of 4
(3,359 Views)
Hi Capt. Jack,

Can you please contact NI support on this issue (ni.com/support). I think they will have some options for you. Thanks!

Ryan
0 Kudos
Message 4 of 4
(3,359 Views)