old .mot files

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Mohammadreza Rezaie
Posts: 408
Joined: Fri Nov 24, 2017 12:48 am

old .mot files

Post by Mohammadreza Rezaie » Sun Feb 16, 2020 1:53 pm

Dear Experts,

After Installing OpenSim 4.1 in MATLAB, "TimeSeriesTable" function reads ".trc" and ".sto" and ".mot" well. But it doesn't read my force motion (grf_forces.mot) which was generated with the previous version (4.0) from c3d file in MATLAB.


Java exception occurred:
java.lang.RuntimeException: expected = double received = double
Thrown at DelimFileAdapter.h:355 in extendRead().
at org.opensim.modeling.opensimCommonJNI.new_TimeSeriesTable__SWIG_5(Native
Method)
at org.opensim.modeling.TimeSeriesTable.<init>(TimeSeriesTable.java:61)

grf_forces.mot
(7.87 KiB) Downloaded 7 times
Is there anything wrong with the headers?

nColumns=10
nRows=117
DataType=double
version=3
OpenSimVersion=4.0
endheader


Cheers

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: old .mot files

Post by Ayman Habib » Sun Feb 16, 2020 6:30 pm

Hello,

The file contains lots of trailing tabs in the header lines of the file, this could be due to saving the file in Excel or another program. Please remove those trailing tabs and let us know if the problem is fixed. The parsing of .mot files has not changed from version 4.0 to 4.1 as far as we know.

Please let us know how that goes,
-Ayman

User avatar
Mohammadreza Rezaie
Posts: 408
Joined: Fri Nov 24, 2017 12:48 am

Re: old .mot files

Post by Mohammadreza Rezaie » Mon Feb 17, 2020 12:13 am

Hi Aymen,

Glad to see your response.
I didn't open the files in Excel, I use Notepad++ to preview OpenSim files But didn't save them.
Deleting trailing tabs in headers solved the problem.

Thanks again

Kindly Regards

POST REPLY