Creating .MOT file from excel

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Samuel Parker
Posts: 3
Joined: Fri Jan 15, 2016 8:55 am

Creating .MOT file from excel

Post by Samuel Parker » Mon Feb 29, 2016 5:55 pm

I have an excel spreadsheet of joint angles corresponding with time. Is there any way to convert this file format into the .MOT file format that I need for OpenSim motions?

Thanks

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Creating .MOT file from excel

Post by Dimitar Stanev » Mon Feb 29, 2016 11:26 pm

Hi,

You can copy the data from the excel and paste them into a .mot file, with the values separated by "tab". Also, you have to add a header in the beginning, where you add some description of the data (columns, rows. etc) and you also add the names of the columns after the header.

Code: Select all

Coordinates
version=1
nRows=618
nColumns=7
inDegrees=yes

Units are S.I. units (second, meters, Newtons, ...)
Angles are in degrees.

endheader
time	blockToGround_xRotation	blockToGround_yRotation	blockToGround_zRotation	blockToGround_xTranslation	blockToGround_yTranslation	blockToGround_zTranslation
      0.00000000	      0.00000000	      0.00000000	      0.00000000	      0.00000000	      0.00000000	      0.00000000
...

User avatar
Murat Bakkal
Posts: 1
Joined: Mon Nov 12, 2018 1:04 pm

Re: Creating .MOT file from excel

Post by Murat Bakkal » Thu Mar 21, 2019 10:43 am

Hello,

I want to do the same thing, but I can not open a mot file. What am I missing? I do not have a place to paste the data into.

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Creating .MOT file from excel

Post by jimmy d » Thu Mar 21, 2019 10:51 am

Open an excel spreadsheet, paste your data, edit the header, column data to match with mot file format, save the file as a tab delimited file with the extension .mot

POST REPLY