Page 1 of 1

Issues converting C3D files with no force data

Posted: Thu Jan 23, 2020 10:41 am
by lefranc
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!

Re: Issues converting C3D files with no force data

Posted: Thu Jan 23, 2020 11:31 am
by aymanh
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

Re: Issues converting C3D files with no force data

Posted: Fri Jan 24, 2020 9:19 am
by lefranc
Hi Ayman,

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

Best,
Aude