NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Handle Errors inside TestStand

I have a Sequence that calls a series of subsequences.
  1. Main sequence -> Test Case
  2. Subsequence 1 -> Test
  3. Subsequence 2 -> Measurement

So a Test Case Sequence calls a Test Sequence and a Test Sequence calls a Measurement Sequence.

I am creating an auto error handling that can respond to user defined error codes with a predefined action.  I am using the Batch model and have added the "ProcessModelPostStepRuntimeError" sequence.  This sequence is handling my error as I expect.

My question is in regards to "exit" level.  One of the predefined actions is terminate and exit only to a certian sequence level.  Example: Error occurs in the "Measurement subsequence" and exit level is set to "Test sequence".  The sequence should log the error, terminate the Measurement Subsequence, return to the calling Test sequence, clear the error, stop the termination, and continue on with the rest of the steps of the Test and Test Case sequence.  I am not sure where to implement this and what teststand variables to set and clear.

0 Kudos
Message 1 of 3
(3,582 Views)
Hello CS,

I have one suggestion off the top of my head.  When you are setting up the SequenceCall step where you call your Measurement sequence, in the properties for the step, in the Run Options is a checkbox to Ignore Run-Time Errors.  If you check this, if there is an error in Measurement sequence, that sequence will stop, and the calling sequence will continue execution after the SequenceCall step.  From the TestStand help it says this about that property:
"If you set this property to True, TestStand does not set the internal status of the sequence to Error. Instead, TestStand resets the Error.Occurred property of the step to False and execution continues normally with the next step. The value Result.Status property remains set to Error for the step."

I'm not sure if this would work for your specific application though.  Let me know if you are still having questions and give me a little bit more information about what you are trying to do, along with what version of TestStand you are using.


Kristen
National Instruments
0 Kudos
Message 2 of 3
(3,477 Views)

Hi,

Maybe the chatter in this post may help

http://forums.ni.com/ni/board/message?board.id=330&message.id=20487#M20487

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 3
(3,459 Views)