NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

A running count of how many steps processed?

Hi, I'm using labview to monitor where I'm at in my teststand sequence. I have several goto statements in TS, meaning that certain steps are executed several times. I'm already using the Step.Index to find out which step I'm on, however I need to keep track of how many times that step has been called(goto loops). Is there a count index that increments for each step processed, regardless of goto loops? I've tried, the Loop.Index however it does not keep track of the Goto loops. Thanks for any help.

Joe
0 Kudos
Message 1 of 2
(3,090 Views)
Joe,

Teststand does not expose a variable that keeps track of how many times a current step has been executed in a Goto Loop. However, it keeps track of how many steps have been executed so far. This information is store in the property RunState.NumStepsExecuted. If you now how many steps are included in your loop, and if you also know the number of steps executed so far, then you can calculate the current iteration of your goto loop.

Hope this helps,

Alejandro del Castillo
Ni
0 Kudos
Message 2 of 2
(3,090 Views)