I am hoping to convert a bunch of C3D files into a openSim compatible files (TRC and Mot extension). I am using the Matlab conversion code that was included in the openSim 4.0 download. One problem I encountered is that my static trials do not have force data, while my dynamic trials do. Since there is no force data, I get an error when the code calls the following:''tables = C3DFileAdapter().read(path2c3d, ForceLocation).''
Since I do not have access to ''C3DFileAdapter'' I can't go in and eliminate the need for force data or insert columns of zeros for the force data. Any suggests on how to write my own function or convert the static trials in some other way?
Thanks all!
Issues converting C3D files with no force data
- AUDE LEFRANC
- Posts: 16
- Joined: Wed Sep 18, 2019 12:47 pm
Issues converting C3D files with no force data
Last edited by AUDE LEFRANC on Fri Jan 24, 2020 8:51 pm, edited 2 times in total.
Tags:
- Ayman Habib
- Posts: 2252
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Issues converting C3D files with no force data
Hi Aude,
Please try version 4.1 (Beta) as it has a fix for this issue and returns an empty table when there's no data (instead of throwing an exception) . Let us know how it goes.
Best regards,
-Ayman
Please try version 4.1 (Beta) as it has a fix for this issue and returns an empty table when there's no data (instead of throwing an exception) . Let us know how it goes.
Best regards,
-Ayman
- AUDE LEFRANC
- Posts: 16
- Joined: Wed Sep 18, 2019 12:47 pm
Re: Issues converting C3D files with no force data
Hi Ayman,
Thanks for the reply. I'll give that a shot!
Best,
Aude
Thanks for the reply. I'll give that a shot!
Best,
Aude