Page 1 of 1

Error using IDAnalysis

Posted: Mon Mar 22, 2021 1:21 pm
by m.safri
Hello Mr. Akhavanfar,

I studied your research about Development of a novel MATLAB-based framework for... and I would like to use your MATLAB code in my project
but when I run your code with your default setting I get the following error :

Error using IDAnalysis (line 28)
Java exception occurred:
java.io.IOException: InverseDynamicsTool Failed, please see messages window for details...

at org.opensim.modeling.opensimModelJNI.InverseDynamicsTool_run(Native Method)

at org.opensim.modeling.InverseDynamicsTool.run(InverseDynamicsTool.java:117)


Error in Main (line 74)
ID= IDAnalysis(ModelFilePath,ModelFileName,AnalyzeFilePath,AnalyzeFileName,MotionFilePath,MotionFileName,initial_time,final_time,extLoadsXml);

I have successfully configured OpenSim with Matlab such as Environment setting in Windows and path setting in Matlab so I don't know what is wrong

if possible please guide me
Thank in advance

Re: Error using IDAnalysis

Posted: Wed Mar 24, 2021 8:55 am
by makhavanfar
Hello Mojtaba,

It's probably because you didn't change the directory path in the xml file setup or you put a wrong directory in the first lines of the main file.

Please open External_Load.xml. Then, in the <datafile> section, copy and paste the right directory in your computer. Attached is the pic of that section based on where I saved the folder in my laptop.
External_Load.PNG
External_Load.PNG (12.95 KiB) Viewed 177 times