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.

(Windows) To view related topics, click the Locate button, shown at left, in the toolbar at the top of this window. The LabVIEW Help highlights this topic in the Contents tab so you can navigate the related topics.

Refer to the Feedback Node - Building an Array in the Structures\Feedback Node directory for examples of the Feedback Node.

Open example� Find related examples

Related Concepts

Local Variables

Global Variables

Feedback Node

Read and Write Variables

Using Local and Global Variables Carefully



Related How-To

Creating Local Variables

Changing the Data Direction of a Local Variable

Creating Global Variables

Changing the Data Direction of a Global Variable