NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can a teststand semaphore be relased if it hangs?

I have an application developed in TestStand 3.5 which contains a lot of semaphores activations and releases in TestStand. I use sempahores because I am controlling the testing of four different set-up boxes at the same time. I am doing the tests steps  in LabVIEW, but this doesn't contain any sempahores. However, for whatever reason, which I haven't found yet Smiley Sad, a semaphore may not be released properly, and the other (three) sequences which are trying to get that resource get stuck, waiting for it. Is there a way to direct the TestStand code to release a semaphore if it hangs for x amount of time, or whatever other parameter?
 
Thanks for any suggestions,
 
Falcon79
0 Kudos
Message 1 of 2
(3,185 Views)
Hi Falcon79,

When you configure the Semaphore to use the "Acquire" Operation, there is a "Timeout" option at the bottom of the "Semaphore Step Configuration" window. You can either use a static amount of time or an expression (variable such as Local or FileGlobal).

In addition to those options, there is a checkbox to specify whether or not a Timeout should cause a runtime error.

Hope this helps Falcon, let me know if you have any more questions.
Dan Weiland
0 Kudos
Message 2 of 2
(3,159 Views)