Sending Shared Variable Data over the Network Immediately
- Updated2025-08-15
- 2 minute(s) read
LabVIEW temporarily stores the data that you write to a shared variable in an 8 kilobyte buffer. LabVIEW sends that data over the network when the buffer is full or 10 milliseconds have passed. Because you incur overhead each time you send a data packet over the network, this design increases throughput by decreasing the number of data packets you send.
However, this design increases latency when you write less than 8 kilobytes of data to a shared variable. To eliminate the 10 millisecond delay and minimize latency, send all shared variable data over the network immediately by using the Flush Shared Variable Data VI after you write to the shared variable, as shown in the following figure.
The previous figure flushes the data that a Shared Variable node writes, but you also can flush shared variable data that you write with other methods. For example, if you are writing shared variables programmatically, use the Flush Shared Variable Data VI after the Write Variable function.