NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop index off by 1

When stepping through a for loop in TestStand 3.1, the loop index displayed as "{x}" in the step description is off by 1.

If Locals.Index is the loop increment variable.:
When Locals.Index == 0, x = 0.
When Locals.Index == 1, x = 0.
When Locals.Index > 0, x = Locals.Index - 1

This doesn't affect execution, but can be confusing during debug.
0 Kudos
Message 1 of 3
(2,693 Views)

I just tried this in 3.5 and could not reproduce it. Are you using the built in For step type or did you separately download add-on flow control step types?

If you are using the built in For step type, please post a simple sequence that reproduces the problem.

0 Kudos
Message 2 of 3
(2,689 Views)
I am using the For step type from flow control.
0 Kudos
Message 3 of 3
(2,684 Views)