LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make labview read sensor data from multiplexer channel

Hi, 

I have a NI8541 ( I2C interface )  and I am trying to use a multiplexer ( PCA9548A ) to be able to control multiple sensors ( HTU21DF ) through one NI8541. To do this I need to send the address of the multiplexer, then the channel within the multiplexer, and then the address of the sensor within that channel.

 

I have been unable to successfully change the address from the multiplexer address of 70 to the sensor address of 40 in labview . Here is a simple diagram of my setup since this is a bit hard to explain: 

2024-08-13_11h08_30.png

 I have tried to use both the general I2C basic commands as well as the script i2c commands but in both I am unable to figure out how to read/write to the sensor.

 

Any help or advice would be greatly appreciated !!!! 

0 Kudos
Message 1 of 2
(234 Views)

Please do not create duplicate posts - https://forums.ni.com/t5/LabVIEW/Using-PCA9548A-multiplexer-with-NI8451-I2C-interface-device-to/m-p/...

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(198 Views)