Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202521

Re: For Loop runs with unwired N value

$
0
0

PauldePaor wrote:

Below is a program I am working on and as you can see by the image that the program runs without the N loop being wired. The program runs with no issue


As everyone else has been saying, you DO NOT have to wire something to N.  If you wire an array to the for-loop as an "auto-index" input, the for-loop will automatically run for the size of the smallest array.

 

Perhaps an example will help:

 

fotloop.png

 

This loops over the size of my array (in this case, 5 elements long).  The symbol on the edge of the for-loop that looks like brackets [ ], indicates that it is auto-indexed.  The loop will iterate over each element one at a time (1, then 2, then 3, then 4, then 5).


Viewing all articles
Browse latest Browse all 202521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>