LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-845X I2C Write/Read Issues

Solved!
Go to solution

I'm using NI-845X I2C to read from a LTC4151 component register.  What I need to do for a successful read is the following:

1) Write the device address ( in this case it is 0xD8) and write the register address that  I want to read from ( in this case 0x02 ) for this case the R/W needs to be 0...

2) Then I need to perform the read by again writing the device address (0xD8) but now with the R/W bit set to 1 (0xD8 | 0x01).

 

This is what I have so far but I'm having issues with it.  

 

 

0 Kudos
Message 1 of 3
(2,547 Views)
Solution
Accepted by topic author Eth

Use 0x6C as your address.  The address for the NI-845X API should not include the Read/Write bit, so you need to shift to the right one bit.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,509 Views)

Thank You! that solved the issue.

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