01-18-2010 03:51 PM
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.
01-19-2010 10:41 AM
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