Example Code

The Basics of For Loops and Auto-Indexing

Code and Documents

Attachment

Overview
This code was developed as an example for a specific application to demonstrate how arrays and auto-indexing, could be used to do some simple processing on some data.


Description
It's a good example for beginners who might be having trouble understanding some of the concepts behind for loops and auto-indexing and when is best to use them. It steps through auto-indexing out of an array to generate some array data, then some appropriate times to use auto-indexing and shift registers.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached file to your computer
  2. Open the VI " Auto Indexing Example 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet

BD.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Joel G
Applications Engineer
National Instruments UK & Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.