LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Write.vi

Labview 8.0 and Windows 2000. I am using NI-8451 USB to I2C Converter and the I2C Write.vi and I2C Read.vi. My question is how do you tell these vi's what address to start at? The vi's have no inputs for address. They have inputs for number of bytes and input data but no input for start address.

Thanks for your help.

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

Hi Iec,

You need to use the Create Configuration Reference vi first, then use the Configuration Property node to set the address, address size, and clock rate.  There are two examples that do a basic read and write in the example finder.  Just go to Help > Find Examples, then Browse to Hardware Input and Output > I2C and SPI > I2C Basic.

In this folder are a basic read and basic write example that would be a great point of reference for you.  There is also more information in the NI-845x Software User Manual and the NI-845x API Help.

Hope this helps!

Adam W
Applications Engineering

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