NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Callbacks....CancelStepCallback

I have two sequence callbacks, PostStep and StepFailure. I am wanting to use Step.CancelStepCallback inside of the PostStep callback, since it is called before StepFailure, so StepFailure callback is not executed, on certain occasions. Is there a way to do this? I have tried "CancelStepCallback" with no luck.

0 Kudos
Message 1 of 3
(4,307 Views)

Hi TreyB

What do you mean with:

 

" I am wanting to use Step.CancelStepCallback inside of the PostStep callback, since it is called before StepFailure, so StepFailure callback is not executed, on certain occasions."

 

My curiosity is the last statement:

" on certain occasions."

 

 

Warm Regards,

Sigi

AE

"everything is achieveable through technology'
0 Kudos
Message 2 of 3
(4,225 Views)

I think I have created a work around but what I was trying to accomplish was retesting a numeric limit step, if it failed, without displaying a failed status to the script and report. So, on the first test check, I would go into the PostStep....if there was a failure I wanted to cancel callbacks and go to specific step to retest. Instead the script would execute my PostStep callback and also the PostStepFailure callback and leave a Failed status.

 

Reason, I have operater entered values through a popup. This could lead to operator error. I have a limit test step that checks these values. Without adding addition steps, I wanted to confirm the value, if a failure, repeat the prompt for value re-entry...do not show a failure on the limit test step. After a second value entry, if it still is a limit test failure then proceed.

 

 

I have a work around instead of using callbacks right now. I am using the Looping tab feature currently with success. I originally was wondering if I called the "CancelStepCallback", inside of PostStep callback, why would the PostStepFailure callback still execute.

Message 3 of 3
(4,218 Views)