Issues converting C3D files with no force data

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
AUDE LEFRANC
Posts: 16
Joined: Wed Sep 18, 2019 12:47 pm

Issues converting C3D files with no force data

Post by AUDE LEFRANC » Thu Jan 23, 2020 10:41 am

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!
Last edited by AUDE LEFRANC on Fri Jan 24, 2020 8:51 pm, edited 2 times in total.

Tags:

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

Re: Issues converting C3D files with no force data

Post by Ayman Habib » Thu Jan 23, 2020 11:31 am

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

User avatar
AUDE LEFRANC
Posts: 16
Joined: Wed Sep 18, 2019 12:47 pm

Re: Issues converting C3D files with no force data

Post by AUDE LEFRANC » Fri Jan 24, 2020 9:19 am

Hi Ayman,

Thanks for the reply. I'll give that a shot!

Best,
Aude

POST REPLY