10-28-2011 06:24 AM
Hello,
I have auto indexed a For Loop (See attached .vi).
I would like to show the position of the For Loop on the front panel. At the moment the position is only shown at the end of each iteration of a loop. I would like to show the iteration of the loop (ie 1 - 6) at the beginning of each loop. How do I do this please?
Nevica
Solved! Go to Solution.
10-28-2011 07:04 AM
Hi Nevica,
Using 'Flat Sequence Structure' you can meet your requirement. here in first sequence show the position of the for loop and in second sequence you can do your application part. I think this will help you to achive your requirement.
10-28-2011 07:20 AM - edited 10-28-2011 07:21 AM
R-click incoming int-wire in loop and create indicator.
/Y
10-28-2011 11:02 AM
You don't need an auto-indexing For Loop if all you're going to do is operate on a sequence of numbers. Tell the loop to operate a fixed number of times (in your example, six) and use the Loop Iteration terminal with an Increment node.
10-28-2011 12:06 PM - edited 10-28-2011 12:11 PM
To quote from LabVIEW help, " The iteration (i) terminal provides the current loop iteration count, which ranges from 0 to n-1."