Page 1 of 1

Add model plug-ins to Matlab

Posted: Mon Sep 07, 2020 3:42 am
by hazimahm
Hi,

I am running static optimisation through Matlab for the Thoracoscapular Shoulder Model. In OpenSIM, I would normally have to load the plug-in prior to loading the model. How can I script this command in Matlab?

Thanks,
Hazimah

Re: Add model plug-ins to Matlab

Posted: Tue Sep 08, 2020 12:17 am
by mitkof6
Hi Hazimah,

I have a code in Python that loads a custom force's dynamic library before loading the model so that the xml description is recognized:

https://github.com/mitkof6/OpenSim_API_ ... ugin.py#L9

The command should be identical for Matlab.

Re: Add model plug-ins to Matlab

Posted: Tue Sep 08, 2020 4:50 am
by hazimahm
Hi Dimitar,

Thank you for your response. For anyone that has the same enquiry, Matlab uses slightly different command:

opensimCommon.LoadOpenSimLibraryExact('file')

Hazimah