Storing Transformation Matrices from Tracked Objects in Real Time

2 views (last 30 days)
I am using an electromagnetic tracker that I can read in and display object positions in real time in Matlab (about 20 fps) with 4x4 transformation matrices supplied by an external source. The question I have is how to efficiently save this data for future analysis (any format works so long as I have the tranformation matrix and time stamp). The recording window can be anywhere from 1-5 minutes and I am tracking three objects simultaniously. I do not know how to efficiently save this data without making a growing structure that appends after each loop. If it helps, I am using the TrakSTAR system by NDI with a Matlab API to communicate with it.
EDIT: I would like to ultimately store the data as a CSV or text file.

Answers (1)

ntinoson
ntinoson on 24 Jan 2020
trakSTAR comes with a ready-to-go software for recording data.
Bytheway, I'm desperately looking for the MATLAB API of TrakStar. We have a quite old C driver, and we want to use MATLAB. I've asked the company but not reply yet. If you could share the MATLAB API, i would be grateful!
Just let me now in case you read this and I could give you my email!

Community Treasure Hunt

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

Start Hunting!