NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

FailureHandlerExample does not seem to work when used in the ProcessModelPostStepFailure Sequence of the SequentialModel

I've incorporated the FailureHandlerExample into my Test Sequences (with some minor modifications) and it works ok when it is in the SequenceFilePostStepFailure in my Sequence File. However, it says in the Sequence comments that this can be made into a ProcessModel Sequence by putting into the ProcessModelPostStepFailure Sub Sequence of the SequentalModel. I tried this, and it doesn't work. It has the same internal steps as the SequenceFilePostStepFailure Sequence, but it never gets called. What do I need to do to get this to work properly in the event of a failure?
0 Kudos
Message 1 of 3
(3,104 Views)
I have just tried the callback and it works for me. Here is what I did.

1) open new sequence file.
2) double click on model path shown at the bottom of the sequence editor. This opens model file associated with the new sequence file.
3) with the process model file active, select Edit>>Sequence File Callbacks
4) select ProcessModelPostStepFailure in the dialog box provided, click the Add button and then the Edit button.
5) Add a message popup to the newly created ProcessModelPostStepFailure.
6) Return to the new sequence file created in step 1 above.
7) select the None adapter and insert a Numeric Limit Test step type.
😎 change the step limits to be 5 and 10. The step will then fail since the default measurement is 0, outside of the limits.
9) run the sequenc
e by selecting Execute>>Single Pass.

The step fails and the ProcessModelPostStepFailure is called, displaying the message popup.

See if this works for you.
0 Kudos
Message 2 of 3
(3,104 Views)
Nemo,
I tried this and it worked, as you described it above. And when I run this newly created sequence with my ProcessModel it works as well. But for some reason, my sequence that I'm developing does not make the call on a failure. My sequence was converted from a CVI Test Executive v2.01 sequence. Can you think of any sequence flags that I may be setting to prevent the ProcessModelPostStepFailure Sequence from being run? Note that I also have incorporated the "On the Fly Reports" example to this sequence also, so this may be having an impact on this...
0 Kudos
Message 3 of 3
(3,104 Views)