XNET UDP Socket Write (Binary) VI
- Updated2025-10-07
- 3 minute(s) read
Writes binary data to a UDP network connection.

Inputs/Outputs
remote port
—
remote port is the port on the server to which you want to write.
remote address
—
remote address is the IP address of the computer where you want to send a datagram. To send multicast datagrams, specify the multicast group address in this input.
socket in
—
socket in is a network connection refnum that uniquely identifies the UDP socket. Use XNET UDP Socket Open or XNET UDP Socket Multicast Open to generate a refnum to wire to this input.
data
—
data is the data to write to another UDP socket. In an Ethernet environment, restrict the datagram to a reasonable size, such as 1,000 bytes. UDP datagrams must be sent as a single IP packet with no retransmission. If the packet is too large to fit in a single transmission unit of the underlying bus, the receiver might fragment and reassemble it, which increases overhead and the chance that the data could be lost in transit. Specific thresholds vary depending on your network.
timeout ms (25000)
—
timeout ms (25000) specifies the time, in milliseconds, that the VI waits to complete before returning a timeout error. The default value is 25,000 ms. Wire a –1 to this input to wait indefinitely.
error in
—
The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.
socket out
—
socket out is the same value as socket in.
error out
—
The error out cluster passes error or warning information out of a VI to be used by other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
remote port
—
remote address
—
socket in
—
data
—
timeout ms (25000)
—
error in
—
socket out
—
error out
—