Page 1 of 1

old .mot files

Posted: Sun Feb 16, 2020 1:53 pm
by kernalnet
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 9 times
Is there anything wrong with the headers?

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


Cheers

Re: old .mot files

Posted: Sun Feb 16, 2020 6:30 pm
by aymanh
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

Re: old .mot files

Posted: Mon Feb 17, 2020 12:13 am
by kernalnet
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