LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using aardvark for i2c in labview

Have anyone used the aardvark to read i2c registers that can help me? The problem i have right now is I don't know how to select the particular register address to read on the DUT (not slave address). Someone wrote a program using VB which allows you to select the register address to read from which then will return the bits in hex. When I use this problem THEN run my vi to read, it'll return the correct bits but it's only because the VB program already points to the address I selected. From what i understand, I am missing the part where you point to the register address in the labview vi.

 

Hopefully what I wrote makes sense, thanks for any help.

 

0 Kudos
Message 1 of 2
(3,258 Views)

You did not indicate what device you are trying to talk to. Typically you need to send a read command to the device telling it what register you want to read. Then you follow up with the read. If your device works this way, then you're missing the I2C Write that sends this "return to me the value of address xxxx".

0 Kudos
Message 2 of 2
(3,212 Views)