Local Variables, Global Variables, and the Feedback Node
- Updated2025-01-22
- 1 minute(s) read
Local Variables, Global Variables, and the Feedback Node
In LabVIEW, you read data from or write data to a front panel object using its block diagram terminal. However, a front panel object has only one block diagram terminal, and your application might need to access the data in that terminal from more than one location.
Local and global variables pass information between locations in the application that you cannot connect with a wire. Use local variables to access front panel objects from more than one location in a single VI. Use global variables to access and pass data among several VIs.
Use a Feedback Node to store data from a previous VI or loop execution.
Refer to the Feedback Node - Building an Array in the Structures\Feedback Node directory for examples of the Feedback Node.