Interfacing MatLab with OpenSim 3.3

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Aaron Henry
Posts: 32
Joined: Tue Dec 03, 2019 8:47 am

Interfacing MatLab with OpenSim 3.3

Post by Aaron Henry » Wed Jan 29, 2020 9:14 pm

I am trying to interface MatLab and OpenSim 3.3. I have tried the auto setup and the manual setup and double checked that my OPENSIM_INSTALL_DIRECTORY is in the system path environment variable, but am still getting this error:

Java exception occurred:
java.lang.UnsatisfiedLinkError: org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0()J

at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_0(Native Method)

at org.opensim.modeling.Model.<init>(Model.java:779)

Have I done something incorrect in setting up the scripting environment or is this another issue?
Thanks

Tags:

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

Re: Interfacing MatLab with OpenSim 3.3

Post by Ayman Habib » Thu Jan 30, 2020 12:06 am

Hi Aaron,

It's not clear if you have other installations of OpenSim on the same machine this includes OpenSim 4.0, (also opensim-moco and opensense if you used either since they both had an embedded distribution of OpenSim inside them). If so please make sure to remove any references to these versions from matlab configuration files.

Also make sure the installation you use of OpenSim 3.3 is the correct one for your Matlab version (x64 or x86). You can check which OpenSim installer was used by inspecting the file $OPENSIM_iNSTALL_DIR/sdk/buildinfo.txt

To make sure the Path is set correctly, you can type 'ik' at the command prompt and see if the ik executable is found on the path.

Hope this helps and please let us know what you find out.

Best regards,
-Ayman

User avatar
Aaron Henry
Posts: 32
Joined: Tue Dec 03, 2019 8:47 am

Re: Interfacing MatLab with OpenSim 3.3

Post by Aaron Henry » Thu Jan 30, 2020 12:18 pm

Thanks for the help Ayman. I think my issue was that I had OpenSim 4.0 interfaced with MatLab at the same time. I have removed 4.0 and am able to run scripts now.

POST REPLY