09-19-2019 08:52 AM
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.
09-20-2019
03:54 AM
- last edited on
12-04-2024
01:29 PM
by
Content Cleaner
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...
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.
09-22-2019 11:19 AM
I use TestStand 2012, but i have these options under Properties->Looping:
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".