08-25-2011 03:22 PM
Hello:
I have got an accelerometer which has digital I2C/SPI serial interface therefore I bought a USB-I2C converter for acquiring data. I would like to know whether I can use Labview to acquire data from com port and also program for the accelerometer to capture the data of Z-axis. I have got a NI myDAQ white box but sb. said it is not a correct device to acquire I2C/SPI signals before. The datasheet of the accelerometer is in the accessory and the specification of the converter is this link: http://www.robot-electronics.co.uk/htm/usb_iss_tech.htm .
I hope somebody can solve the problem for me. It is better to use labview software for me because most of my project work is based on that.
Best Regards
Jeff
Solved! Go to Solution.
08-27-2011 04:13 PM
Good News/Bad News. You have an accelerometer that "talks" I2C, and a USB-to-I2C converter, so if you connect the two of them, you can send "commands" to your accelerometer easily from LabVIEW using the Serial communication VIs. That's the Good News. The Bad News is that it looks like you may need to address your accelerometer using very low-level calls, a job I certainly don't want to tackle! This crys out for a "driver", an intermediate piece of hardware that does all the "hard work" of taking a high-level command ("Please tell me the acceleration") and translates it into things your device understands (including setup, registers, timing, packing and unpacking bits and bytes, etc.).
Bob Schor
08-28-2011 05:55 AM
Hello Jeff,
As mentioned in pervious post, to program the accelerometer you would need to become very familiar with
evaluation board and accelerometer register level programming. Be ready for a few days of fun reading the manuals. 🙂
Michael.