Synchronizing the data of 2 subdevices within 1 device.

2 views (last 30 days)
I am currently trying to figure out how to Sync up my IMU data. Within this IMU there is an Accelerometer and Gyroscope that get data with 200Hz and an GNSS that gets data with 10Hz. The ultimate goal is using the script(when its done) for event detection. Within the GNSS data I get is a POSIX time and a 'timestamp[us]' in the IMU data is only the 'timestamp[us]. Does anyone have an idea on how I could manage to sync these two time variables so I can view real time events within matlab eventhough they have different frequencies.

Answers (1)

Star Strider
Star Strider on 16 Jun 2025
I would copy both original data records to appropriate timetable arrays, and then use the synchronize function. It might be necessary to create POSIX time vlaues for the one that has only microseconds (IMU), so create the complete timestamp, or use only the 'seconds' data from the data (GNSS) with POSIX times.
  10 Comments
Star Strider
Star Strider on 21 Jun 2025
@Niels -- Having the documentation for your instrumentation with respect to how it calculates and assigns the time data for both the IMU and GNSS records would help solve this.
Please post the relevant sections of the .pdf documentation, or the entire .pdf documentation if it is not voluminous (that is, fits the Answers file size limits).
Niels
Niels on 23 Jun 2025
Yeah that is where my issue started, the documentation that I have says nothing about the calculation or the gathering of the data from the device itself.. I've mailed the company trying to get anything like that tho.

Sign in to comment.

Products


Release

R2025a

Community Treasure Hunt

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

Start Hunting!