10-22-2018 10:28 AM
Hello, I want to get data from an accelerometer such as adxl345 or mpu6050.
My question is the following:
with VISA (serial) or with LINX (i2c or SPI) can I achieve more samples per second ?
Thank you
10-22-2018 02:28 PM
The rate you can sample is (mostly) dependent on what is digitizing the signal. In both the case of the ADXL345 and the MPU-6050, there is a digitizer built into the device. Also in both cases the device has a FIFO buffer which will allow you to send the data back to your computer in batches.
What all this means is: the communication protocol (or interface) you use to talk to either of these devices should not impact the bandwidth or sample rate of your accelerometer. What matters is the accelerometer itself and the digitizer.
(I'm obviously ignoring the data transfer rate limitations of the serial interface. Neither of those devices should be anywhere close to capping the bandwidth)
10-22-2018 02:29 PM
Hi canye,
with VISA (serial) or with LINX (i2c or SPI) can I achieve more samples per second ?
There are some limitations you need to obey:
- sample speed of your sensor (as described in the manual)
- I²C/SPI speed of the Arduino
- LINX speed/overhead
- speed of the serial port communication used with your Arduino
I guess the fastest you could get is to write your own Arduino sketch to read that sensor and to send the data in a compact format to your LabVIEW computer (using the virtual COM port of the Arduino)…