Shared Variable下載 PDF選擇的小節所選的小節與子小節完整手冊已更新2025-07-30閱讀時間為 2 分鐘LabVIEWAPI 參考LabVIEW G 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. 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.Write VariableWrites to a network-published shared variable, I/O variable, or I/O variable container.Close Variable Connection FunctionCloses a connection to a shared variable.Local Variable Object ReferenceUse this constant to supply a reference to one of the following items: local PSP Variable Engine, local I/O Variable Engine, local Root PSP Variable Container, or local Root I/O Variable Container.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.Search Variable Container FunctionSearches 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.PSP VariableUse the PSP Variable VI and functions to access PSP variables programmatically.I/O VariableUse the I/O Variable functions to access I/O 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.Parent topic: Data Communication
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. 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.Write VariableWrites to a network-published shared variable, I/O variable, or I/O variable container.Close Variable Connection FunctionCloses a connection to a shared variable.Local Variable Object ReferenceUse this constant to supply a reference to one of the following items: local PSP Variable Engine, local I/O Variable Engine, local Root PSP Variable Container, or local Root I/O Variable Container.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.Search Variable Container FunctionSearches 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.PSP VariableUse the PSP Variable VI and functions to access PSP variables programmatically.I/O VariableUse the I/O Variable functions to access I/O 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.Parent topic: Data Communication
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. 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.Write VariableWrites to a network-published shared variable, I/O variable, or I/O variable container.Close Variable Connection FunctionCloses a connection to a shared variable.Local Variable Object ReferenceUse this constant to supply a reference to one of the following items: local PSP Variable Engine, local I/O Variable Engine, local Root PSP Variable Container, or local Root I/O Variable Container.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.Search Variable Container FunctionSearches 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.PSP VariableUse the PSP Variable VI and functions to access PSP variables programmatically.I/O VariableUse the I/O Variable functions to access I/O 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.Parent topic: Data Communication