Page 1 of 1

Exporting a matlab function which utilizes opensim

Posted: Thu Aug 19, 2021 5:05 am
by gent
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