Add model plug-ins to Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Hazimah Mahmud
Posts: 14
Joined: Mon Jan 20, 2020 9:16 am

Add model plug-ins to Matlab

Post by Hazimah Mahmud » Mon Sep 07, 2020 3:42 am

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

Tags:

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

Re: Add model plug-ins to Matlab

Post by Dimitar Stanev » Tue Sep 08, 2020 12:17 am

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.

User avatar
Hazimah Mahmud
Posts: 14
Joined: Mon Jan 20, 2020 9:16 am

Re: Add model plug-ins to Matlab

Post by Hazimah Mahmud » Tue Sep 08, 2020 4:50 am

Hi Dimitar,

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

opensimCommon.LoadOpenSimLibraryExact('file')

Hazimah

POST REPLY