NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set recording options to only recording the last loop?

So I have some steps in a for loop, and right now everything time the loop executes it records, even if it fails. How do I record only the last iteration in the loop? I want it to record the last iteration even if it fails or if it passes. Sometimes it will pass on the first iteration, and if it passes then it will skip the rest of the iterations on the loop, and then I want to record that pass. Sometimes it will go through all iterations and fail all, but I only want to record the last. How do I do this? Thanks in advance. 

0 Kudos
Message 1 of 3
(2,682 Views)

Hi,

Hope this helps you on customizing the steps to include in the report.

TestStand Report Generation and Customization: https://www.ni.com/en/support/documentation/supplemental/08/teststand-report-generation-and-customiz...

https://forums.ni.com/t5/NI-TestStand/How-to-enable-step-result-recording-in-case-of-step-fail/td-p/...

 

To skip the For loop if the step passes, you can modify the settings in the For Loop. Change the expression to suit your application.

 

Capture.PNG

 

0 Kudos
Message 2 of 3
(2,618 Views)

I use TestStand 2012, but i have these options under Properties->Looping:

OnlySavelastLoop.PNG

If you have not done it, set x=1 in "Stop after x iterations pass"
And set y=your value in "maximum of y iterations"

Also remove mark for "Record Result of Each iteration".

0 Kudos
Message 3 of 3
(2,604 Views)