Write live data to a DataSocket connection when you want to send live data updates to other VIs without displaying the data on the front panel of your VI.
Note You cannot use the front panel DataSocket functionality to read data written to a DataSocket connection programmatically. You must read the data programmatically to receive live data updates.
Complete the following steps to write live data programmatically through a DataSocket connection.
Note You must install the DataSocket Server to write live data programmatically.
Open the DataSocket Server by selecting Start»Programs»National Instruments»DataSocket»DataSocket Server.
Select the DataSocket Write function on the Functions»Communication»DataSocket palette and place it on the block diagram.
Specify a URL in the URL input of the DataSocket Write function.
Wire the data you want to write to the data input of the DataSocket Write function. If another application reads the live data, convert the data to variant data.
Run the VI or continually run the VI to write live data updates to the DataSocket connection.