# WriteDevice

Exports data from the IDE to another host on the network using a TCP/IP connection.

Note: The WriteDevice function can send a message to a remote host while either online or offline.

## WriteDevice Inputs

Parameter | Description
Event | Specifies the event that forces an update. This parameter must be a reference to one of the following: The Image data structure in cell A0, containing the AcquireImage function. For more information, see AcquireImage. A cell containing an Event function. For more information, see Event. A cell containing a Button function. For more information, see Button. A cell containing a numeric value (any non-zero numeric value will force the update).
Device | A reference to a spreadsheet cell containing a Device data structure created by a TCPClient function. For more information, see TCPClient.
Data 1, 2, ... | A reference to a cell which contains the data to export to the TCP/IP server device specified in the TCPClient function.

## WriteDevice Outputs

Returns | A Write data structure, containing the data that will be exported whenever the specified Event is initiated, or #ERR if any of the input parameters are invalid.