Instrument Control Toolbox™ Support Package for National Instruments® NI-845x I2C/SPI Interface enables you to use the NI-845x adaptor to communicate using I2C or SPI interfaces to your chips, circuit boards, or sensors remotely from a computer running MATLAB®.
Example using National Instruments NI845x driver