View Single Post
  #9   Spotlight this post!  
Unread 17-10-2013, 15:04
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: I2C bytes to Arduino in LV?

Quote:
Originally Posted by jman4747 View Post
So if I only want to send one byte at a time I only define the register? Or do you mean the first byte I send in my code period is that register, and any following bytes need to be under data to send (Witch screen shot would be correct)?
If you want to send only one byte in the transaction to your Arduino, you would used the second example you posted. It would send either 2 or 0.

In the first example it looks like you would send either [1,1] or [1], so two bytes or one byte in each transaction.

Quote:
Originally Posted by jman4747 View Post
PS Also is the devise address on the I2C Open the address of the receiver?
Yes. The Device address is the 7-bit address of your Arduino device on the I2C bus.


I would also recommend that you try it out and print out what you get on the Arduino side to help you better grasp how the API works. You can also just open up the VIs to see what they do to some extent.

Cheers,
-Joe