Opens a UDP socket to send a datagram to a single receiver on the port you specify. If you want to send a single datagram to multiple receivers in parallel, use the XNET UDP Multicast Open node.


icon

Inputs/Outputs

  • cgenclassrntag.png stack

    stack is the XNET IP Stack in which the new socket is opened.

  • cu16.png local port

    local port is the port number where you want to listen for a connection. By default (0), this VI dynamically chooses an available UDP port to listen for connections on.

    The following table lists valid port numbers as defined by the Internet Assigned Numbers Authority (IANA).

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

  • cstr.png local interface

    local interface identifies a specific virtual interface in the IP Stack on which to bind the socket. The virtual interface is identified using one of the following (as returned from XNET IP Stack Get Info.vi):

    • virtual interface name (recommended)
    • string that represents the decimal value of ifIndex
    • IP address (see Supported Features)

    This input is optional. If local interface is empty (default), the socket is bound to any virtual interface in the IP stack.

  • igenclassrn.png socket

    socket is a network connection refnum that uniquely identifies the connection. Use this value to refer to this connection in subsequent VI calls.

  • iu16.png actual local port

    local port is the port number where you want to listen for a connection. By default (0), this VI dynamically chooses an available UDP port to listen for connections on.

    The following table lists valid port numbers as defined by the Internet Assigned Numbers Authority (IANA).

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