Accelerometer data interval

Comments & issues
hottwaj
Fresh meat
Posts: 2
Joined: Mon Jan 13, 2020 7:59 am
Contact:

Accelerometer data interval

Postby hottwaj » Mon Feb 17, 2020 11:20 am

Hi there, I would like to pull off samples from my accelerometer at a rate of 1 new sample every 1ms (i.e. 1000Hz).

From the documentation and API, this appears to be possible e.g. the API says that MinDataInterval is 1

However, the fastest that samples are ever delivered is 8 samples (in bulk) once every 8ms. I really want those samples as soon as they are available, once every 1ms, rather than having to wait for every 8ms for them to be delivered in bulk.

I have also tried a polling approach where I request the current accelerometer value every 1ms, but I find that the value only changes once every 8ms.

Am I doing something wrong, or is the hardware not actually capable of 1sample/1ms, or is there an issue with the phidget library?

I am using the PhidgetSpatial Precision 0/0/3 High Resolution 1043 accelerometer with Python under Linux. I have the latest Phidget library (Phidget22) installed.

Any help/tips appreciated & thanks for the great devices!

User avatar
Patrick
Lead Developer
Posts: 3211
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Accelerometer data interval

Postby Patrick » Tue Feb 18, 2020 11:21 am

Data is delivered over USB every 8ms - there is no way to change this interval.

-Patrick

hottwaj
Fresh meat
Posts: 2
Joined: Mon Jan 13, 2020 7:59 am
Contact:

Re: Accelerometer data interval

Postby hottwaj » Tue Feb 18, 2020 11:38 am

Aha, thanks. That's a shame (at least for my intended application).

Appreciate the quick reply though, cheers.


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests