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

TCP VI and Functions

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Requires: Base Package. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the TCP VI and functions to interface with devices on a TCP network.

Example

The VI and functions on this palette can return networking error codes.

Palette ObjectDescription
IP To StringConverts an IP network address to a string.
Resolve Machine AliasReturns the network address of the machine, which you can use with the networking and VI server functions.
String To IPConverts a string to an IP network address or an array of IP network addresses.
TCP Close ConnectionCloses a TCP network connection.
TCP Create ListenerCreates a listener for a TCP network connection. Wire 0 to the port input to dynamically choose an available TCP port the operating system determines is valid for use. Use the TCP Open Connection to query the NI Service Locator for the port number registered with the service name.
TCP ListenCreates a listener and waits for an accepted TCP network connection at the specified port.
TCP Open ConnectionOpens a TCP network connection with the address and remote port or service name.
TCP ReadReads a number of bytes from a TCP network connection, returning the results in data out.
TCP Wait On ListenerWaits for an accepted TCP network connection.
TCP WriteWrites data to a TCP network connection.

Example

Refer to the labview\examples\comm\TCP.llb for examples of using the TCP VI and Functions.


 

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