NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip a test that is inside a sequence call?

I have some configuration functions that is located in a customized sequence model, I would like to skip user specified tests in a sequence call(mainsequence callback), is this possible? Thanks!
0 Kudos
Message 1 of 4
(4,458 Views)
Hi km9394,

There are a number of solutions.
1). You could make use of the precondition of a step.
2). Set the Post Action of a step to jump to a destination in you sequence there by by-passing section of your sequence.
3). Alternatively, instead of setting the Post Action of your step. You could make use of the Goto step type.
4). You could set the Run Mode of each of your steps dynamically by setting the property TS.Mode to "Skip". Be aware, on the next iteration of calling your sequence steps may still be set to "Skip" therefore you will have to set them back to "Normal" if you want them to be executed.

Is this want you looking for
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(4,458 Views)
Thanks for your answer, and do you know the programmatical way to do so?
I saw the example in ni.com : "Using a Setup Step to Specify Several Main Steps to Skip with LabVIEW", but I cannot modify it to programmatically skip a test within a subsequence that the current sequence called.
0 Kudos
Message 3 of 4
(4,458 Views)
Hi,

I have attached a small example (TS2.0.1f1).

Example1
This gets the number of steps in the Main. Checks which steps have been set to Skip. If 'all are set to skip' then goto cleanup.

Example2
This displays a dialog and you can pick whether to run the step in main Normal, Skip, Passed, Failed.

Hope these help
Regards
Ray Farmer

Hope this helps.
Regards
Ray Farmer
Download All
0 Kudos
Message 4 of 4
(4,458 Views)