NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I have downloaded an example form "http://zone.ni.com", but I think it is a bug in it.

Hello!

I have downloaded an example form the web, but I think it is a bug in it.

The example is: "Retry a Failed Step to Avoid a Sequence Failure"

I download it from the URL address: http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&DF744911A2F9C0BF8625683A000B9BC3&cat=98593CE7FDEE3C7B862567C2005AC9D7

When I run the example I can se the "bug" it I tray to do as following:

Run Sequence

Enter a serial number

Click on "Fail" button

Click on "Terminate" button

Click "OK" in the Terminate banner

Click "Next UUT"

Enter a serial number

Click on "Fail" button

Click "Retry" button

Now you can see the "bug", the program is now displa
ying a blue "Terminate" banner.
I suppose the program should not display this banner, but only run the current steep again.

If anybody can tell me what�s wrong in this example I will be very happy.
0 Kudos
Message 1 of 5
(3,551 Views)
Hi,
I think if you follow the instructions as given in the example you will not have any problems.
here are the instructions below

"This example code demonstrates one technique of handling test failures.

If this step fails, a dialog will be displayed giving options to Break, Terminate, or Retry.
The On Fail Post Action calls the HandleTestFailure sequence which is
another sequence in this sequence file.

The sequence file has the SequenceFilePreStep Callback overridden where
the initial statue of Runstate.SequenceFailed is stored in a local variable. Create a local variable in your sequence called SequenceAlreadyFailed which is a boolen.

To use this in your sequence file:
1. Copy the HandleTestFailure sequence to your sequence file.
2. For a step to use this, you
must set the On Fail Post Action to call the
HandleTestFailure sequence.
3. Override the PreStepCallback.
4. Copy the step from this example's PreStepCallback to yours.
5. Copy the TestFailureDialog.* files to the same directory as your sequence file.
0 Kudos
Message 2 of 5
(3,551 Views)
I am sorry,
But I have followed the instructions, but I still have the problem I described.

Have you tested the recipe I wrote?
0 Kudos
Message 3 of 5
(3,551 Views)
"I did not answer the question correctly.I have found the problem in the example. I have modified it. If you go back to the example you will get the right top level VI's
Anand Jain
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 5 of 5
(3,551 Views)
I did not answer the question correctly.I have found the problem in the example. I have modified it and it will corrected tomorrow. I have attached the modified vi.
0 Kudos
Message 4 of 5
(3,551 Views)