12-07-2020 12:05 PM
Hello
I am new to the batchmodel in teststand 2014 and i have problem with my first sequence.
Everything works fine unit the operator presses the Terminate-All button. When this happens i get sometime an error -17300 (Enter operation with the same name is already pending for this thread). In my opinion when theads enter a batch and Terminate-All is pressed then they go to the cleanup of that sequence. I have a Exit batch in all cleanups where i Enter a batch. How is it possible that i get this error ?. I have attached a part of my sequence as an example
Thanks for your help in advance
Solved! Go to Solution.
12-09-2020 05:32 AM
Hi Tonnie,
If we're terminating and running into an error, it sounds like some test sockets might be being terminated before finishing the main steps, so we don't hit the "End Batch Sync" steps properly as they're repeated in both main and cleanup (thus saying that the operation is already pending). It might be worth looking at Rendezvous steps to force threads to wait for each other before cleaning up.
Best wishes,
Nick
12-09-2020 07:24 AM
Hello Nick
Thanks for your response.
I don't understand it completely . When a thread passes the "Start Batch" and is terminated, then it goes to cleanup for the "Exit batch". How can a step then be terminated without going via Cleanup and "Exit Batch" ?
12-09-2020 07:31 AM
Hi Toonie,
It looks as though we have "Exit batch" in two locations, both main and cleanup. My understanding was that you were receiving an error that the operation was already pending; in this case, because it may be performing the Main "exit batch" but is terminated so that you then enter the Cleanup "exit batch" command while trying to terminate the Main "exit batch".
This would generate duplicate requests and possibly lead to the error you are seeing. You should be able to confirm this by seeing if you get the same behaviour with only one exit step.