Documentation

I2C Communication

Direct communication using the I2C interface

I2C, or Inter-Integrated Circuit, is a chip-to-chip interface supporting two-wire communication. You can open connections with individual chips and read and write over the connections. Create the interface object using the i2c function, and use the fread and fwrite functions for communication.

To use the I2C interface, you need to have either a Total Phase Aardvark host adaptor or a NI-845x adaptor board installed. See Configuring I2C Communication for more details.

Functions

i2c Create I2C object
clear Remove instrument objects from MATLAB workspace
delete Remove instrument objects from memory
disp Display instrument object summary information
fclose Disconnect interface object from instrument
fopen Connect interface object to instrument
fread Read binary data from instrument
fwrite Write binary data to instrument
get Instrument object properties
instrhwinfo Information about available hardware
methods Class method names and descriptions
record Record data and event information to file
set Configure or display instrument object properties
Was this topic helpful?