Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Shared Variable Node, VI, and Functions

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Data Communication VIs and Functions

Requires: Base Development System (Real-Time, Windows). This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Shared Variable node, VI, and functions to share data among VIs or between locations on the block diagram that you cannot connect with wires.

Palette ObjectDescription
Close Variable ConnectionCloses a connection to a shared variable.
Local Variable Object ReferenceUse this constant to supply a reference to one of the following items:
Open Variable ConnectionOpens a connection to a shared variable.
Read VariableReads from a network-published shared variable, I/O variable, or I/O variable container.
Search Variable ContainerSearches under a variable container and returns an array of references to variable objects that match your search criteria. You can use this function to find variables programmatically.
Shared VariableRepresents a shared variable on the block diagram. To bind a Shared Variable node to a shared variable from the active project, add a Shared Variable node to the block diagram and double-click or right-click the node and select Select Variable»Browse from the shortcut menu to display the Browse for Variable dialog box. You also can drag a shared variable from the Project Explorer window onto the block diagram of a VI in the same project to create a Shared Variable node.
Variable Property NodeGets (reads) and/or sets (writes) properties of a reference. This node operates the same way as a standard Property Node. However, this node is pre-configured for Variable references.
Write VariableWrites to a network-published shared variable, I/O variable, or I/O variable container.

I/O Variable FunctionsUse the I/O Variable functions to access I/O variables programmatically.
PSP Variable VI and FunctionsUse the PSP Variable VI and functions to access PSP variables programmatically.


Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit