Using Analyze Tool via Matlab

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Markus Kurz
Posts: 9
Joined: Mon Jun 01, 2020 10:37 am

Using Analyze Tool via Matlab

Post by Markus Kurz » Tue Jul 07, 2020 9:44 am

Hej,

thanks for the great help in this forum. We are quite far with using OpenSim via Matlab but are now at the point where we want to use the AnalyzeTool. Everything works fine so far. We can assign a model, the analysisset we want to have and also the bodies we want to analyse (we just want to have bodykinematics of all bodies). Printing the .xml setup file works also nicely and if we use this setup file within the GUI, it also works perfectly. But wenn we want to call: analyzeTool.run() we are getting following error:
Error code.JPG
Error code.JPG (35.44 KiB) Viewed 358 times
Maybe someone can help us, because we do not understand, why we should specify a states file even though we are not using it.

Best Regards,
Markus

Tags:

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

Re: Using Analyze Tool via Matlab

Post by Dimitar Stanev » Sat Jul 11, 2020 3:44 pm

Hi Markus,

You are getting an error, because the external force file is not specified. If you want to try going through the following link to see how others have used the analyze tool. Maybe you can find workarounds for your problem:

https://github.com/opensim-org/opensim-core/issues/2076

Please keep in mind that the tools were designed to be parametrized by the .xml file. There are some corner cases that raise issues when doing this through the API.

Dimitar

POST REPLY