console reporter

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

console reporter

Post by hamed kouchebaghi » Tue Sep 15, 2020 12:56 am

Hello,

when I run the code for the arm model in the following link: https://github.com/opensim-org/opensim-core
I can see the results stored in the "out.log" in the Current Folder.
I want to print the information of the out.log file to my console, how can I do it ??

Thank you,
Hamed

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

Re: console reporter

Post by Thomas Uchida » Tue Sep 15, 2020 6:30 am

I presume you're using Matlab. If I recall correctly, OpenSim may fail to print to the Matlab Command Window if there are version conflicts (e.g., if one uses a 32-bit version of Java or the JVM while the other uses a 64-bit version). This may be platform-specific and dependent on other settings, and therefore difficult to diagnose on the Forum. One possible workaround is to just open the out.log file in a text editor after OpenSim has finished executing. You could also open the file and print its contents to the Matlab Command Window automatically (using "fopen", etc.).

POST REPLY