Page 1 of 1

Using Analyze Tool via Matlab

Posted: Tue Jul 07, 2020 9:44 am
by markur
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 373 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

Re: Using Analyze Tool via Matlab

Posted: Sat Jul 11, 2020 3:44 pm
by mitkof6
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