Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

UDP Write Function

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: UDP VI and Functions

Requires: Base Development System

Writes to a remote UDP socket.

Examples

port or service name can accept a numeric or string input. port or service name identifies what port to write to. If you specify a service name, LabVIEW queries the NI Service Locator for the port number that the server registered.
address is the address of the computer where you want to send a datagram.
connection ID is a network connection refnum that uniquely identifies the UDP socket.
data in contains the data to write to another UDP socket. In an Ethernet environment, restrict data to 8192 bytes. In a LocalTalk environment, restrict data to 1458 bytes to maintain gateway performance.
timeout ms specifies the time, in milliseconds, that the function waits before the function completes and returns an error. The default value is 25,000 ms or 25 seconds. A value of -1 indicates to wait indefinitely.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
connection ID out returns the same value as connection ID.
error out contains error information. This output provides standard error out functionality.

Examples

Refer to the following VIs for examples of using the UDP Write function:

  • labview\examples\Data Communication\Protocols\UDP\UDP Multicast\UDP Multicast.lvproj
  • labview\examples\Data Communication\Protocols\UDP\Simple UDP\Simple UDP.lvproj
  • labview\examples\Data Communication\Protocols\UDP\UDP Named Service\UDP Named Service.lvproj
  • labview\examples\Data Communication\Protocols\UDP\UDP Named Service\UDP Named Service.lvproj

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit