You need to have a Total Phase Aardvark host adaptor installed to use the i2c interface. You must install the "Aardvark Software API and Share Library" appropriate for your operating system. See I2C Interface Usage Requirements and Guidelines for more information.
The aardvark.dll file that comes with the Total Phase Aardvark adaptor board must be available in one of the following locations for use on Windows® platforms.
The location where MATLAB was started from (Bin folder).
The MATLAB current folder (PWD).
The Windows folder C:\winnt or C:\windows.
The folders listed in the PATH environment variable.
Ensure the Aardvark adaptor is installed properly.
Look at the adaptor properties.
You can create an I2C object using the i2c function. The example in the next section uses an I2C object called eeprom that communicates to an EEPROM chip.
eeprom = i2c('aardvark',0,hex2dec('50'));
You can then display the object properties.
You can see that the communication settings properties reflect what was used to create the object – BoardIndex of 0 and RemoteAddress of 50h. For information about other properties, see Using Properties on an I2C Object.