I2C SPI USB CAN eSPI Cable Testing View All Videos Quick Start Guides Software Downloads App Notes White Papers User Manuals Knowledge Base Sales Support About Us
Products Blog Sales Support Contact Search
Support Question of the Week: How Do I Integrate the Aardvark I2C/SPI Host Adapter and the API Software with MATLAB?
Rena

I have an AardvarkTM I2C/SPI Host Adapter. To configure communication for I2C devices,  I'll be using MATLAB® with the Aardvark adapter. Can you tell me how to do that? I am using Windows 7 Professional, 64-bit.

Thanks for your question! We do not support MATLAB directly, but we provide the tools so that you can use the Aardvark I2C/SPI Host Adapter and MATLAB together. We have a knowledge base article that should help you: How To Use Total Phase Products With MATLAB. We also provide Aardvark API Software, which includes several code examples that include integrating with MATLAB as well as many chips and devices, and can be customized as needed. Following is a summary of the directions. In this example, Python for 64-bit Windows is used. Many other programming languages and operating systems are also supported.

Aardvark Software API supports multiple software languages and can be modified for specific user requirements. Figure 1: Aardvark API Software
Install Aardvark API Python: NOTE: Install the same windows version of API software as MATLAB: 64-bit or 32-bit.

  1. Locate and then delete the aardvark.dll /.h/.c files in your computer.
  2. Uninstall and then download and re-install the latest USB drivers v2.12 for Windows. Verify that the Aardvark adapter appears in the Windows Device Manager under the USB section.
  3. Uninstall and then download and re-install the latest Aardvark API v5.14 for 64-bit Windows.
  4. Connect the Aardvark adapter to the Windows computer via the USB connector.
  5. Download and install Python 2.7.6 for 64-bit Windows.
  6. Run the original aadetect Python example as provided in the API package. Verify the Aardvark adapter appears in the aadetect API example.
  7. Ensure the 64-bit aardvark.dll is in same directory as the executable.
  8. Open the Command Prompt.
  9. Change the directory to “..\ aardvark-api-windows-x86_64-v5.14\python”.
  10. In the directory “..\ aardvark-api-windows-x86_64-v5.14\python” type: ”C:/Python27/python.exe aadetect.py”.
  11. To verify the setup, write and read to I2C memory with the Aardvark adapter and the original aai2c_eeprom Python. Use this example as provided in the API Software package.
Install Aardvark API MATLAB:

  • To install 64-bit MATLAB , follow steps 1-4 above that are were used to install API Python.

For more information about the Aardvark adapter and other Total Phase products, please refer to the  documents listed below.  If you have questions about using MATLAB software commands, please contact Mathworks Support.

We hope this answers your question. If you have other questions about our Host Adapters or other Total Phase products, feel free to email us at sales@totalphase.com or submit a request for technical support.