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)
Is there anything wrong with the headers?
nColumns=10
nRows=117
DataType=double
version=3
OpenSimVersion=4.0
endheader
Cheers
old .mot files
- Mohammadreza Rezaie
- Posts: 408
- Joined: Fri Nov 24, 2017 12:48 am
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: old .mot files
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
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
- Mohammadreza Rezaie
- Posts: 408
- Joined: Fri Nov 24, 2017 12:48 am
Re: old .mot files
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
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