When programming with loops, sometimes you need to call data from previous iterations of the loop. In LabVIEW, you can use shift registers
, which are similar to static variables in text-based programming languages, to pass values from one loop iteration to the next.
After the loop code executes, data enters the right shift register and is passed to the left shift register on the next iteration of the loop.
This tutorial explains how to add and configure shift registers in LabVIEW. Before completing this tutorial, it may be helpful to review information on LabVIEW For Loops and While Loops
. This is a tutorial is suited for LabVIEW beginners. If you are looking for more resources on LabVIEW basics, look into the Introduction to LabVIEW
getting started material.