LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
smmarlow

Progress Terminal for FOR Loop

Status: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.

Add a progress terminal that outputs a 0-100 value representing %complete for the loop.  The terminal can be enabled/disabled like the conditional terminal.  The compiler would discard the code behind it if it is not used.

 

23032i1D059572AE00CD5B

12 Comments
AristosQueue (NI)
NI Employee (retired)

usrfrnly: Create a subVI that has a single iteration loop with an integer uninitialized shift register. Each time the subVI is called, increment the integer and return the value. Include some way of calling the subVI to reset the value in the shift register to zero.

 

Now put that subVI inside your parallel for loop. Reset the value to zero before the parallel loop starts. Inside the loop, there's your progress value.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.