How to integrate Xsens MTw sensors and MATLAB

Hi, Self confessed newbie with zero experience with MATLAB. My university is currently conducting some research regarding spinal care for pre-hospital care and have invested in Xsens MTw motion sensors to capture data from clinical scenarious. We have the MT Manager software up and running and all the data including euler angles, accelaration, velocity etc are recorded and stored as a .MTB file (binary log file) The software can also export ASCII data from this MTB file which creates a .txt file that can be read in MS Excel. We have managed to do some plotting of data using excel but we have MATLAB and want to use it to compare angle deflections and show the movements of the sensors using surface graphs in matlab. So far, the only way i have been able to do this is to import the data from excel after conversion to ascII format. We want to know if there is a way of getting the xsens motion sensors to talk directly to matlab or if there is a way to open the MTB file with the data directly in matlab. If i use the import function and open the MTB file currently its all just odd squiggles and junk. Any help would be greatly appreciated.
Kind regards, Michael

Answers (1)

I'm also working in with Xsens motion sensors to measure the movement in patients with spinal lesions. And I'm also exporting the .MT binary file to .txt with the MT Manager, and then to .mat in MATLAB, to be able to work with the data.
I know it is been a year since you ask. I'm wondering if you found any way to record the sensors from MATLAB or simpler ways to export the file?

4 Comments

hi!!i meet the same problem,do you have a best solution? i only want to use matlab without MT manager.

Hi all, its been years but just let you know that I work on the same thing. I've been successfull to stream data from MTw to Matlab/simulink. Streaming data to matlab is relatively easy as XSens already gave the SDK that comes with MT manager. Streaming data to simulink is a little bit tricky but doable. I used UDP object to send the data from Matlab workspace to and receive it on simulink using UDP receive object.

Hi Latif Rozaqi, I have been trying to stream the Mtw to Simulink using UDP object but I am having problems doing that. I'll appreciate if you could explain how do you manage to stream the data using UDP?
Comment posted as flag by @CHUANG SHUEH LIN:
hi, i saw you leaved a comment on wabsite and i want to stream data from MTw to matlab. Can you teach me, please. thanks

Sign in to comment.

Categories

Find more on Chemistry in Help Center and File Exchange

Products

Asked:

on 31 Jan 2014

Commented:

Rik
on 25 Apr 2021

Community Treasure Hunt

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

Start Hunting!