Transferring Values between Loop Iterations
- Updated2026-09-28
- 1 minute(s) read
You can use shift registers, error registers, and the Feedback Node in LabVIEW to transfer values between loop iterations for For loops, While loops, or (Real-Time, Windows) Timed Loops.
Related Information
- For Loops: Repeating Operations a Set Number of Times
You can use a For Loop to execute a section of code contained within the loop, called a subdiagram, a set number of times.
- While Loops: Repeating Operations Until a Condition Occurs
Similar to a Do Loop or a Repeat-Until Loop in text-based programming languages, a While Loop executes a subdiagram until a condition occurs.
- Characteristics of Timed Structures (Real-Time, Windows)
- Shift Registers: Passing Values between Loop Iterations
- Passing One Value to the Next Loop Iteration
- Passing Multiple Values to the Next Loop Iteration
- Error Registers: Handling Errors on Parallel Iterations
- Improving For Loop Execution Speed with Parallel Iterations
You can improve the execution speed of a suitable For Loop by enabling parallel iterations.
- Feedback Nodes: Storing Data between Loop Iterations
- Passing the Last Value from the Previous Execution to the Feedback Node
- Resetting the Input Value on a Feedback Node Each Time a Loop Executes
- Data Communication Methods in LabVIEW
LabVIEW contains many data communication methods, each suited for a certain use case. Refer to the overview to ensure you implement the correct data communication method for your application.