Transferring Values between Loop Iterations
- Updated2026-05-01
- 1 minute(s) read
Use the following objects to transfer values on For Loops, While Loops, or (Real-Time, Windows) Timed Loops :
- Shift registers — Passes one value or multiple values to the next loop iteration.
- Error registers —Passes error clusters on parallel For Loops.
- Feedback Node — Passes the value from the previous execution or sets the value each time the node executes.
Related Information
- For Loops: Repeating Operations a Set Number of Times
Learn how to use For Loops to repeat code a set number of times, control execution count, pass data between iterations, and improve performance with auto‑indexing and parallel execution.
- While Loops: Repeating Operations Until a Condition Occurs
While Loops run a LabVIEW subdiagram until a Boolean condition is met. Use the iteration terminal, shift registers, and auto-indexing to control WHile Loop behavior.
- 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
- Parallel Iterations: Improving For Loop Execution Speed
- 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