Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3
By default, while loops are auto-indexed disabled. In order for while loops to process and generate arrays, the loop tunnel must be enabled to auto-indexed arrays.
Figure 5.41 Disabled Auto-Indexing
To enable auto-indexing, right click on the loop tunnel and select Enable Indexing from the pop-up menu.
Figure 5.42 Enabling Auto-Indexing
In this example the while loop appropriately generates a 1,000 element numeric array with random numbers.
Figure 5.43 Auto-Indexing Enabled
- 1307 reads