The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: While Loops #3 - Auto Indexing Defaults

SercoSteveB
Active Participant

For and While loops have the capability to auto-index the contents of an array control or indicator wired to the structure boundary.  Which of the following are the default states for auto-indexing of For and While loops?

a)      For loop: auto-indexing disabled, While loop: auto-indexing disabled

b)      For loop: auto-indexing enabled, While loop: auto-indexing enabled

c)       For loop: auto-indexing disabled, While loop: auto-indexing enabled

d)      For loop: auto-indexing enabled, While loop: auto-indexing disabled

Comments
SercoSteveB
Active Participant

Answer 😧

The following VI Snippet shows the auto-indexing defaults for While and For loops. 

I created the Numeric Array In (U8) array and wired it through the loops.

Auto-Indexing Answer #1.png

You can enable/disable auto-indexing from the right click shortcut menu of tunnels (looping structures only).  Auto-indexing can be enabled/disabled on input and output tunnels independently.

ashwinilele
Member

D