How Do I Identify which I2C Host Adapter is Connected to which Port using LabVIEW?

Question from the Customer:

 I have two Aardvark I2C/SPI Host Adapters connected to my PC that are used in parallel. I am using LabVIEW. How do I determine which Aardvark adapter is connected to which port? As shown below, the ports are not differentiated.  How can I get the port information per Aardvark adapter?

View of Computer Devices

Response from Technical Support:

Thanks for your question! We have LabVIEW drivers and API software that you can use to quickly get the information that you are looking for.

Aardvark LabVIEW Driver

Examples are provided with our Aardvark LabVIEW Driver. In the example Aardvark Example Connect, the serial number is displayed during connecting the Aardvark adapter in Port 0 or Port 1 as shown below.

Aardvark device details in LabVIEW

In our knowledge base, we have more examples about using LabVIEW with the Aardvark adapter:

Aardvark API Software

You can also use Aardvark API Software to identify which adapter is connected to which port. We have two recommendations, which are described below.

Aardvark Adapter Unique ID

The Aardvark API Software command aa_find_devices_ext is used to return the Unique ID for corresponding port number. The Unique ID is the serial number of the device.

Locate a Specific Aardvark Adapter

To access a specific Aardvark adapter, we recommend using the aa_find_devices_ext API function to get the port number with serial number mapping. You can then use that information to open the desired port. For more information about API software, please refer to the section API Documentation in the Aardvark I2C/SPI Host Adapter User Manual.

Additional resources that you may find helpful include the following:

We hope this answers your questions. If you have other questions about our host adapters or other Total Phase products, feel free to email us at sales@totalphase.com. You can also request a demo that is specific for your application.

Request a Demo