---
name: "lxi_connect"
section: "3"
platform: "linux"
package: "liblxi-dev"
version: "1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lxi_connect"
---

# lxi\_connect(3)

connect to LXI device

## NAME

lxi\_connect - connect to LXI device

## SYNOPSIS

**#include \<lxi.h\>**

**int lxi\_connect(char \*address, int port, char \*name, int timeout, lxi\_protocol\_t protocol);**

## DESCRIPTION

The **lxi\_connect()** function connects to a LXI device with *name* at IP address pointed to by *address*

If *name* is NULL then the default name "inst0" will be used.

*protocol* is either VXI11 or RAW.

If *protocol* is RAW then *port* will be used as destination port.

The *timeout* is in milliseconds.

## RETURN VALUE

Upon successful completion  **lxi\_connect()** returns a new connection handle, or  **LXI\_ERROR** if an error occurred.

## SEE ALSO

[**lxi\_send**(3)](/lxi_send/3.md), [**lxi\_receive**(3)](/lxi_receive/3.md), [**lxi\_disconnect**(3)](/lxi_disconnect/3.md),
