Write Variable
- Updated2025-07-30
- 2 minute(s) read
Writes to a network-published shared variable, I/O variable, or I/O variable container.
For I/O variables and I/O variable containers, this function performs a scanned write operation.

Inputs/Outputs
shared variable refnum in
—
data in
—
data in contains the data you want to write to the connection.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
shared variable refnum out
—
error out
—
error out contains error information. This output provides standard error out functionality. |
Caution If you use this function to access a shared variable without first opening a connection to the variable, LabVIEW automatically opens a connection to the variable. However, this implicit open operation can add jitter to the application. Therefore, National Instruments recommends that you open all variable connections with the Open Variable Connection function before accessing the variables.
shared variable refnum in
—
data in
—
error in (no error)
—
shared variable refnum out
—
error out
—