Writes binary data to a UDP network connection.


icon

Inputs/Outputs

  • cu16.png remote port

    remote port is the port on the server to which you want to write.

  • cstr.png 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.

  • cgenclassrn.png 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.

  • c1du8.png 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.

  • ci32.png 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.

  • cerrcodeclst.png 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.

  • igenclassrn.png socket out

    socket out is the same value as socket in.

  • ierrcodeclst.png 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.