Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Enabling Auto-Indexing for Loops

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

If you wire an array to a For Loop or While Loop, you can read and process every element in that array by enabling auto-indexing. When you wire an array from an external node to an input tunnel on the loop border and enable auto-indexing on the input tunnel, elements of that array enter the loop one at a time, starting with the first element. Right-click the tunnel at the loop border and select Enable Indexing or Disable Indexing from the shortcut menu to enable or disable auto-indexing. To avoid default data output values when a loop does not execute, enable auto-indexing every time a For Loop has an output tunnel. Auto-indexing for While Loops is disabled by default.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit