Analyse tool error

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Filuta Ionescu
Posts: 5
Joined: Mon Aug 08, 2016 2:49 am

Analyse tool error

Post by Filuta Ionescu » Sun Mar 05, 2017 8:01 pm

Hello everyone,
I would like to use OpenSim for my research, and I am reading and trying out all the Examples and Tutorials from OpenSim documentation. I did not have any problems until I start with Analyze tool. I am not experienced in troubleshooting OpenSim and the error below does not let me sleep. Any help/suggestions will be highly appreciated.

Exception:
Storage: ERROR- failed to open file
ResultsStaticOptimization\subject01_StaticOptimization_force.sto
file= C:\Dev\OpenSim321\src\opensim32\OpenSim\Common\Storage.cpp
line= 127

Thank you very much.
Filuta

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Analyse tool error

Post by Thomas Uchida » Mon Mar 06, 2017 2:52 am

The file could not be opened, probably because it couldn't be found. Here's the code that throws the Exception (Storage.cpp, lines 126–127):

Code: Select all

ifstream *fp = IO::OpenInputFile(aFileName);
if(fp==NULL) throw Exception("Storage: ERROR- failed to open file " + aFileName, __FILE__,__LINE__);
Does it work if you provide a full path to subject01_StaticOptimization_force.sto (e.g., "C:\…") rather than a relative path?

User avatar
Filuta Ionescu
Posts: 5
Joined: Mon Aug 08, 2016 2:49 am

Re: Analyse tool error

Post by Filuta Ionescu » Mon Mar 06, 2017 6:43 am

Dear Tom,
Thank you very much for your prompt answer. I have managed to fix the problem following your second suggestion.
Kind rgards,
Filuta

POST REPLY