Clear Filters
Clear Filters

Sensor data collection with MATLAB mobile: time-interlaced samples from different sensors

1 view (last 30 days)
I need to acquire data from multiple sensors (accelerometer and gyroscope) at the same time.
I have tried with the MATLAB mobile application at the maximum sampling rate (100 Hz) but I have noticed from the timestamps in the log file that data from the two sensors are not sampled simultaneously but instead they are time-interlaced, forcing me to interpolate one of the two time series, which I would like to avoid.
Is this problem due to the processing of the application or is it intrinsic to the hardware architecture (e.g. single measurement chain with multiplexed channels)?
Thank you.
  3 Comments
Misha
Misha on 21 May 2021
Hi,
The sample rate, you specified, applied to each sensor individually. The sensors on the device work independently of each other and are not synchronized. Rather than synchronize the sensor data on the device MATLAB Mobile just collects it and gives it to MATLAB.
I assume you are using Stream To Log option in MATLAB Mobile. This will produce a MAT file which has timetable for each sensor you've collected. If you are using Stream To MATLAB option, then data is sent to MATLAB mobiledev object. In this case, there is an InitialTimeStamp and all sensor timestamps are relative to this InitialTimeStamp

Sign in to comment.

Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!