LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview FPGA NI-7854R

I am trying to implement I2C and Parallel Communication protocols. Can anybody help me with example code specifically for NI-7854R.

0 Kudos
Message 1 of 4
(2,724 Views)

SPI and I2C Driver API


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
Message 2 of 4
(2,719 Views)

I've personally used this before, and it works quite nicely:  https://forums.ni.com/t5/Example-Code/I2C-Bus-Communication-Example-Using-LabVIEW-FPGA/ta-p/3996143/...

 

Just download it and follow all the instructions to get the FPGA code compiled and the Host updated.  (Its pretty detailed, with pictures, and relatively easy to follow.)

 

I attached an example on how to call the Host in a wrapper VI to do basic I2C communication (this was curtesy of a NI Applications Engineer who emailed this to me when I first requested help with the library):

 

i2c.png

 

If you decide to use this and have any questions, just let me know!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 3 of 4
(2,713 Views)

Hi 

 

 

0 Kudos
Message 4 of 4
(2,689 Views)