Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using I2C communication in NXT with Labview

I'm trying to use the NXT Toolkit 2.0 in Labview for I2C communication. The firmware I'm using on the NXT is 1.26, so that's not a problem.

Specifically, I'm trying to communicate with a PIC16f667 using I2c.

 

The issues I'm having are follows.

 

1. When I try to receive multiple bytes (i.e. set the number of bytes in NXTcommLSwrite block to 2 or above), it doesn't work and ends up returning a -35 error. It only receives the first byte, and the rest are zero, and then it returns the error.

2. Very rarely (or randomly) it works, but then the values I get are 00 or 255 or arbitrary.

 

 

I don't know if there's something in Labview side that can go wrong, Can someone tell me the exact algorithm/sequence of events that i need to use for I2C communication? I know there's a manual on this, but I've referred to it and done everything from it.

 

Any feedback is much appreciated.

 

 

0 Kudos
Message 1 of 2
(6,330 Views)

Hello,

 

Does the error message give you a description of the error? If so, what does it say? Can you post a screenshot of the error as well as your block diagram?

 

-Zach

0 Kudos
Message 2 of 2
(6,322 Views)