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

조회 수: 6 (최근 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에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by