NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the loop count for while loop?

Solved!
Go to solution

hello, 

I want to find the loop counter when the while loop is running, without setting parameter for record additionally. Is there anyway possible for me?

Thanks in advance.

0 Kudos
Message 1 of 3
(2,156 Views)
Solution
Accepted by ixlty

There is no loop counter that comes with the while loop step. You can easily add one using the Pre or Post expression fields.

Marc Dubois
Message 2 of 3
(2,141 Views)

Thank you. I compared with For loop and find that there is also no loop counter in itself. Therefore, I still have to set temperary parameter for loop counting.

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