LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 6008 USB

How to use i2c LCD display in NI 6008 USB?

0 Kudos
Message 1 of 4
(1,496 Views)

@titos_sampas wrote:

How to use i2c LCD display in NI 6008 USB?

Not really!  The 6008 is a multifunction device with analog input and digital IO. In theory you could of course use the digital IO to drive a I2C bus, in practice this comes down to bit-banging the I2C protocol, and while possible, it’s a major project of its own to develop and the 6008 hardware isn’t exactly ideal to do this.

 

Using a Raspberry Pi with its onboard I2C has also challenges but would be still several times easier to do.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(1,463 Views)

Another option would be a USB-8451 or USB-8452, which are made for communicating over I2C and SPI.  The API is pretty straight forward.



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
0 Kudos
Message 3 of 4
(1,413 Views)

Or another cheaper and less industrial solution is an Arduino, probably the Uno, and the LINX toolkit which is free.  This downloads a standard firmware to the microcontroller and allows LabVIEW to request it perform operations.  The LINX API has I2C, SPI and a bunch of other protocols.  Years ago I made an industrial grade tester using the USB-8451 for communicating over SPI.  After the project was over I replace the hardware with an Arduino and LIFA which came before LINX and I was able to perform the same test using this cheap hardware.  In the end we didn't mind paying the extra money for NI hardware knowing it came with support from NI, where if the Arduino broke or stopped working, we would be on our own.

0 Kudos
Message 4 of 4
(1,394 Views)