Failed setup of Matlab-OpenSim interface

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Tony C
Posts: 2
Joined: Tue Apr 21, 2015 7:19 pm

Failed setup of Matlab-OpenSim interface

Post by Tony C » Sun Jun 09, 2019 12:29 am

Hi OpenSim Operation Team,
I confronted a problem when I tried to set up Matlab scripts for batch data processing.

I followed the instructions from: https://simtk-confluence.stanford.edu:8 ... ith+Matlab to set up the OpenSim-Matlab environment. I used the automated setup approach and found the configuration successful (run the command of "import org.opensim.modeling.*" and it worked).

However, when I tried out the "setupAndRunIKBatchExample.m" script, some errors occurred as follows:

Error using setupAndRunIKBatchExample (line 93)
Java exception occurred:
java.io.IOException: InverseKinematicsTool Failed, please see messages window for details...

at org.opensim.modeling.opensimModelJNI.InverseKinematicsTool_run(Native Method)

at org.opensim.modeling.InverseKinematicsTool.run(InverseKinematicsTool.java:137)


I have tried many methods that were previously mentioned in the forum for debugging (e.g., run Matlab as the administrator, set up the environment manually, match-up the software versions, and make sure the Opensim bin directory is in the Matlab PATH), but none of them work for me.

Work environment: Windows 7 64bit, OpenSim 3.3 64bit, Matlab 2014a 64bit.

Can anybody help me with the problem? Thank you.

Regards,
Tony

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Failed setup of Matlab-OpenSim interface

Post by Dimitar Stanev » Sun Jun 09, 2019 1:42 am

After executing the script, two files are created (err.log, out.log) in the same directory. They may provide you with additional clues.

User avatar
Brody Hicks
Posts: 32
Joined: Wed Jun 19, 2019 11:55 am

Re: Failed setup of Matlab-OpenSim interface

Post by Brody Hicks » Wed Aug 07, 2019 9:29 am

I am having this same issue. Did you ever find a solution here?

It seems like the configuration is successful (configureOpenSim.m runs and says that it's successful), but any attempts use scripts such as setupAndRunIKBatchExample.m fail. The setupAndRunIKBatchExample.m script also fails because the InverseKinematicsTool is undefined in matlab, e.g.

"Undefined function or variable 'InverseKinematicsTool'.

Error in setupAndRunIKBatchExample (line 46)
ikTool = InverseKinematicsTool([genericSetupPath genericSetupForIK]);"

Can anyone help with this problem?

Thanks,
William Brody

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: Failed setup of Matlab-OpenSim interface

Post by Dimitar Stanev » Sat Aug 10, 2019 10:46 am

Did you import then OpenSim classes?

Code: Select all

import org.opensim.modeling.* 

POST REPLY