TCP VI and Functions

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.

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.


SubpaletteDescription
Transport Layer Security FunctionsUse the Transport Layer Security (TLS) functions to implement TLS connection and secure remote communications.

Data Communication Methods Home

Example

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.

 Open example  Find related examples