TCP VI and Functions

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Protocols VIs and Functions

Requires: Base Development System. 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.


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.

Data Communication Methods Home


Refer to the Simple TCP.lvproj in the labview\examples\Data Communication\Protocols\TCP\Simple TCP directory for an example of using the TCP VI and Functions.


Not Helpful