MATLAB: How to connect to an NI USB-8452

Instrument Control Toolbox

I would like to use an NI USB-8452 interface device to connect to an I2C sensor, but I am not able to connect to the NI USB-8452 interface. It does not show up in tmtool and I cannot open a connection to the device. Where can I find the device's remote address?

Best Answer

The NI device itself is only an interface, and therefore, will not have a remote address. The remote address of an I2C connection is specific to a sensor. Therefore, if there were no sensors connected to the NI interface, it will not show up in tmtool. Please take a look at the datasheet of a sensor you would like to use, and find the remote address.

The following page demonstrates how to connect to the sensor programmatically:

www.mathworks.com/help/instrument/i2c.html