Exporting a matlab function which utilizes opensim

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jeremy Genter
Posts: 16
Joined: Wed Oct 21, 2020 2:47 am

Exporting a matlab function which utilizes opensim

Post by Jeremy Genter » Thu Aug 19, 2021 5:05 am

Hello everyone,

I am trying to export a function from matlab which can be read in LabView.
In this matlab code I access my opensim shoulder model to get maximal isometric forces at the current joint position and the moment arm of the muscles. This matlab function I would like to export so i can utilize it real time to later calculate the current optimal muscle forces.
I tried to use MATLAB compiler to create a .Net assembly. However, when I import it into Labview and try to run the code I get the message:

No constructor 'org.opensim.modeling.Model' with matching signature found.

So I guess that my created dll does not know of some opensim dlls. However, before calling the model I import org.opensim.modelling which seems to work. So does anyone know how to export a matlab function which utilizes opensim?

Thanks for your suggestions.

Cheers,
Jeremy

Tags:

POST REPLY