Quote:
Originally Posted by jordan11623
The program is Labview, I'm not really sure what the program language is... If you can help us from that point, that would be fantastic.
|
Few people know that the actual name of the graphical language in the LabVIEW environment is "G". Most would just say you're programming in LabVIEW.
Why did you pick the MB1222 device? I2C is powerful, but it's one of the more complex schemes available in the MaxBotics sensor line.
If you feel up to the challenge, you can use the ADXL345 I2C Accelerometer example as a starting point. It shows how to communicate with an I2C device. The MB1222 datasheet tells what the 8-bit equivalent read and write addresses are (E0 and E1), and describes how to interpret the response.
If you aren't comfortable blazing new trails, you would find your job to be much easier if you used something like the MB1010 or MB1020 instead. Reading its output can be as simple as reading an analog voltage, something which is well supported by the FRC programming tools.