NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

a boolean for stop at first failure or run all steps

How do I add a boolean at the serial number prompt screen?
True: stop at first failure = step causes sequence failed, with performing clean up steps.
False: run all steps = step failed does NOT cause sequence failed.
0 Kudos
Message 1 of 3
(3,192 Views)
There are two parts to the solution. The first part is to create and set the boolean. To do this, you need to create a variable, probably in StationGlobals so that you share between your process model and client sequence file. You could also put the variable in your process model file, but the property path is not quite as obvious. To set the variable, you need to add the PreUUT callback to your client sequence file. Then you can replace the serial number prompt with your own code (we used LabVIEW), including a check box for your boolean. Alternatively, you could use the existing serial number prompt and add a second step for setting the boolean, but that is more cumbersome for your users.

The second part is to implement the proper stop/run behavior for your
steps. This is done be specifying a custom post action for each step. To do this, I recommend that you define a custom step type. That way you don't have to edit this for every step. Once you create the custom step (probably based on the standard TestStand step types) edit the properties and select the Default Post Actions tab.
0 Kudos
Message 2 of 3
(3,192 Views)
Hi,

Another way to implement this would be to use one of the override callbacks 'SequenceFilePostStepFailure', 'ProcessModelPostStepFailure' or 'StationPostStepFailure'.

There is an example using the 'SequenceFilePostFailure' in C:\TestStand\Examples\Callbacks\PostStepFailureCallback\.

I use this method to provide a Stop-On-Failure facility.

The difference with using the Override is you wouldn't have to create custom steps. It depends where you are in your development cycle.

Regards
Ray Farmer
Message 3 of 3
(3,192 Views)