10-30-2016 01:08 AM
Hi,
I m currently having a project that require me to get data from an I2c device (HMC5883L Magnetometer) using an I2C to Usb connection (http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm). Im pretty new to labview and wonder if anyone can help me with it!
Thanks!
10-30-2016 03:13 PM
You need to build or find a driver in LabVIEW.
This driver can use VISA to communicate with the I2C master chip and that one does the I2C handling for you. Essentially ou need a cmd to write to a chip and a read to get data from the chip
You also need a higher level driver for each type of I2C chip that you want to commnicate with.
You could skip this part but then you will be duplicating stuff for the next chip.
In this driver you decide what you write and what you expect from the chip. Handling of hese reads and writes does the higher level.
10-31-2016 05:03 PM - last edited on 01-09-2024 03:22 PM by migration-bot
There is also a USB to I2C device from National Instruments that has it's own driver and API. Here is a link to a guide for it.
Michael H
01-10-2024 01:38 PM
01-10-2024 02:13 PM
@Albert.Geven wrote:
Hello Michael
Great that retired NI people are really working on answers, but questions from 2016 are pretty useless after 8 years. The 8451 is not a real cheap solution and has speed problems but works mostly as expected if 8 bit values are sufficient.
Not to mention the USB-8451 is no longer sold. You will have to get a USB-8452, which does have a lot of improvements over the 8451. But at the moment, I think I would just get a Raspberry Pi Pico for $5 and program it to do the I2C and pass the data back and forth.
01-10-2024 03:54 PM
01-11-2024 03:26 AM - edited 01-11-2024 03:26 AM
@Albert.Geven wrote:
Hello Michael
Great that retired NI people are really working on answers, but questions from 2016 are pretty useless after 8 years. The 8451 is not a real cheap solution and has speed problems but works mostly as expected if 8 bit values are sufficient.
I think you got spooked by the migration bot that updated the original message that was created within a day of the original post. My guess is that the migration bot is a tool that automatically goes through posts to update links to relocated Knowledge Base posts, which would be quite a useful tool, as I hate dangling links in posts because the Knowledge Base database got relocated.
01-11-2024 04:34 AM