Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to communicate with PCA9548A(8-CHANNEL I2C SWITCH) by using USB-8451?

Solved!
Go to solution

Hi,

 

Now I am doing a project related to smart battery. Now I have read the data from one battery by using the USB-8451 through smbus. The next step is using the  USB-8451 to read out more than one batteries' data through smbus. I choose the PCA9548A(8-CHANNEL I2C SWITCH) to achieve this purpose. But when I check the specification of the  PCA9548A, there is a fix I2c format to read the data from it, I have tried many times, but still failed, can any one tell me where is the fault in my code, or maybe it is impossible to communicate with this IC chip by using  USB-8451?

 

Below is the fix I2C read format of   PCA9548A

 

NLPSSZ]NAQ}$%GY%%QAQHVH.jpg

 

 

 

0 Kudos
Message 1 of 2
(4,016 Views)
Solution
Accepted by topic author panzhenyi

Why are you usng the script VIs? Have you looked at the shipping examples for the 8451? You just need a couple of property nodes to set the rate and address and then use the I2C Write VI.

0 Kudos
Message 2 of 2
(4,012 Views)