10-17-2006 05:19 AM
10-17-2006 06:47 AM
10-17-2006 07:24 AM
10-18-2006 12:04 PM
Hi Radha,
If I understand you correctly, you want to call the cleanup once the TestStand engine hangs? I do not believe this is possible because once the engine hangs, you will not be able to call any other commands until the hang ends.
You could investigate setting a time limit for your station. While this is not normally recommended for general operation (because a short time limit could cause your execution to terminate prematurely), you can set a time limit to run if execution exceeds your time. For instance, you could select the Terminate Execution option which would terminate your program and execute all of the Cleanup step groups in sequences on the call stack before execution stops. You can access time limits by going to Configure >> Station Options >> Time Limits. Note that this is a station option and will affect all sequences you run within this station. You can find more about Time Limits by simply searching for Time Limits in the TestStand Help.
Ray was correct in stating that your real problem is the hang. I understand that this is someone else's code, but if you can drill down and identify at what specific step that the program is hanging, you may be able to catch it and save your problem from hanging.
Matt Mueller
NI