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

# lxi\_send(3)

send message to LXI device

## NAME

lxi\_send - send message to LXI device

## SYNOPSIS

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

**int lxi\_send(int device, char \*message, int length, int timeout);**

## DESCRIPTION

The **lxi\_send()** function sends *length* bytes from the message buffer pointed to by *message*

The  *timeout* is in milliseconds.

## RETURN VALUE

Upon successful completion  **lxi\_send()** returns the number of bytes successfully sent, or **LXI\_ERROR** if an error occurred.

## SEE ALSO

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