LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mutiple I2C readings with Multiplexer TCA 9548A

Hi,

 

I am trying to use myrio-1900 to control 32 magnetic sensors QMC5883L via I2C. Since they have the same slave address, I am using 4 multiplexer TCA 9548A to enable 32 multiple readings.

 

Attached is my test program to read 2 sensors on 2 different multiplexers set to have slave addresses x72 and x74 respectively. What I do is first write the multiplexer slave address and the location of the magnetic sensor. And then I write/read the sensor as for an individual one. However, I keep having Error-363011 occurred at myRIO v1.0 Write I2C.vi:5730001. 

 

I have also tried to customize the Write I2C.Vi so that I can write the TCA address and write/read the Magnetic sensor in one step which still gives me the same error. Is there anyone have some experience working with the multiplexers or could anybody help with troubleshooting this or give some advice? I really appreciate it.

 

Best

 

0 Kudos
Message 1 of 2
(735 Views)

Hi Yu_Gi_Oh.

 

Did you ever solve this?  I am trying to solve a similar but less complex(?) problem with six identical proximity sensors with fixed, identical I2C addresses using a Quiic MUX board with a 9458A Mux chip using Arduino/Makerhub.  I can read/write to a single proximity sensors when I plug it directly into the Arduino, but when I try to read/write a single sensor through the mux board, I lose write control and every register I try to read returns the register number as the contents/value of the register (i.e. reading register A2hex returns 162decimal as the value in the register). 

 

I have a valid I2C connection with the mux/sensor (because I don't get an "IC Read.vi" error).   Any help would be appreciated. 

0 Kudos
Message 2 of 2
(575 Views)