NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

erase step results

I have a sequence of steps that conditionally needs to be executed multiple times. If the condition is true, then I need to go thru the sequence all over again. Each time I go thru the sequence I want TestStand to forget the results from the previous sequence pass. So, let's say if on pass #1 there may have been 5 failures, then I want to repeat the sequence in hopes that on pass #2 there will be zero failures and the test will pass. Currently, TestStand remembers every result and if I have any failures on any pass, it does'nt seem to matter if I get a clean pass, TestStand will still fail the test.
 
Is it possible to tell TestStand to forget the results from a large number of (maybe a 1000) steps? Unfortunately, I don't know at the time that a step is being executed whether it's results should be discarded. The decision as to whether to execute another pass is based on a number of variables (step failures is only one factor), and the decision is made at the end of the sequence.
 
Hurst C.
0 Kudos
Message 1 of 6
(3,803 Views)
hurst,
 
Why do you want to delete the results?
I think it would be better just to have a record of every single step result.
If you do not want the sequence to fail because of an specific step failure you can go to the step properties dialog-> Run Options and uncheck the Step Failure causes  sequence failure check box.
 
take a look to the following post:
 
 
Hope it helps.
 
Antonio Lie.
0 Kudos
Message 2 of 6
(3,780 Views)

Antoine,

What I am trying to do is to verify instruments performance and if the instrument fails, use the calibration capabilities of the instrument to attempt to correct the issue. If the instrument has NO calibration cabilities, then NO adjustment can be made. After making adjustments, I will then go through and verify the performance of ALL the instruments and if during this pass all the instruments pass (no adjustments), I want the whole sequence to pass. Because of cascading effects it may be neccessary to run more than one adjustment pass. I hope this clarifies what I am attempting to do.

Hurst C.

 

0 Kudos
Message 3 of 6
(3,774 Views)

Hurst,

A solution for your problem would be to test your instrument inside a loop.
If the instrument test passes you would exit the loop otherwise you will try to adjust the instrument and try it again.
You will need to set a maximum number of attempts to adjust the instrument. If the test does not passes after the maximum number of attempts the test would fail.
I have created a very simple sequence file to show you how to implement this.
I only have a 'MainSequece' where I call a subsequence ('SequenceCall' step).
The sequence call step is configured to be executed in a loop. (step properties -> 'Loop Options' tab)
You set the maximum number of attempts using the variable 'Locals.NumTimesToAdjust').
Inside the subsequence the test takes place.(I pass the test if the loop index is 3)
The adjustment only occurs if the test fails (step preconditions).
Take a look to the seuquence file attached and if you have any question let me know.
The sequence file is a TestStand 3.1 file. Let me know if you are using a previous version of TS.

Best Regards.

Message Edited by Antonio Lie (NI) on 01-10-2006 11:36 AM

0 Kudos
Message 4 of 6
(3,749 Views)

I'm using TS 3.0.

I have come up with a method (which I have tested) that works quite well. I pass each one of my performance verification steps a flag. In the C-code this flag dis/enables the Step failure causes sequence failure step property. When I'm ready to do my final pass, this flag is set to true. This allows me to ignore results collected during the adjustment pass, but still documents all of the adjustment pass results in the report file.

Hurst C.

0 Kudos
Message 5 of 6
(3,734 Views)
Hurst,
 
I am glad you found a solution.
I am attaching the sequence file again saved as a TS 3.0 sequence file.
You could take a look to the file and compare it to your current solution.
 
Regards.
0 Kudos
Message 6 of 6
(3,720 Views)