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

1 次查看(过去 30 天)
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 个评论
Misha
Misha 2021-5-21
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sensor Data Collection 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by