07-04-2022 04:44 PM
I haven't been able to track this down, but is it possible to pull i2c data from an IMU with python?
I am not particularly concerned with high performance -- getting the data a few times per second is fine. Actually, it doesn't really need to be i2c -- i just want to read roll and pitch data a few times a second, so if there is a way to go about this, I would certainly appreciate knowing about it.
CRIO 9053
9403 module
07-04-2022 05:16 PM
You've not said what the model of your IMU is.
07-04-2022 05:19 PM
I have not purchased an IMU yet -- hoping I could get an indication of some possibilities before doing so. Recommendations are always welcome.
-Evan-
07-04-2022 07:54 PM
Whatever the choice of IMU (unless it has analog outputs and you've matching analog input c-series modules), you've to develop some code on cRIO (FPGA) to do the digital communication to get packets of IMU data. In this case, the cRIO can be programmed only using LabVIEW.
IMO, If you want it to be simple, you can purchase an IMU that has analog output, buy matching sound and vibration input C-series modules, use the cRIO in DAQmx scan mode, this way you can directly code in DAQmx libraries in Python.
07-05-2022 04:53 PM
Simple sounds good. So I can use something like an Analog Devices IMU with a NI-9218 card for this?
Thanks for pointing me in the right direction - I would rather not go down the digital route, then.
-Evan-
07-05-2022 05:37 PM
Unless you have got the hardware you mention and are limited to using them, I would recommend purchasing one of the combo products from https://www.ni.com/en-us/shop/hardware/products/usb-sound-and-vibration-measurement-bundle.html
9218 is a good choice, but compatibility with Analog Devices IMU cannot be generalized, the compatibility has to be evaluated on a case by case basis.
07-05-2022 05:52 PM
I have the CRIO chassis now -- that's the only bit that is set. I already use the 9411 and 9403 modules to read a rotary encoder and control a sprayer, so I'm pretty far down that path.
07-05-2022 08:41 PM
Since you already have a DIO module, and anyway you're going to program the cRIO, it is best to go with an IMU with a digital interface and implement the digital communication protocol using the 9411 module.
07-06-2022 11:26 AM
If using an analog output IMU is more simple, I'll just go that direction.
Thanks so much for your help on this.
-Evan-