Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

I2C Read

Read the specified number of bytes from the I2C slave on the specified channel.

i2c-read.png

Inputs

EOF

I2C Channel

Specifies the I2C channel to read from. If the LINX device has a single I2C master it is channel 0. If the LINX device has more than one I2C master the logical first I2C master is channel 0, the next is channel 1, etc.

LINX Resource

Contains LINX connection resources.

I2C Slave Address (0)

Specifies the 7-bit I2C slave address.

Bytes To Read

Specifies the number of bytes to read from the I2C slave device.

Error In

Describes error conditions that occur before this node runs. This input provides standard error in functionality.

Timeout (1000 ms)

Specifies the amount of time in ms to wait for all data to be received from the I2C slave device.

Outputs

LINX Resource

Contains LINX connection resources.

Data

Returns the data read from the I2C slave.

Error Out

Contains error information. This output provides standard error out functionality.

Related Links

i2c-close

i2c-open

i2c-write

VI Reference

Clone this wiki locally