Page 1 of 1

Newbie problems with exporting plot data

Posted: Fri Jun 29, 2018 9:33 am
by immedicale
Hello.
I've recently started working with OpenSim. One of the things I wanted to do, was to gather data concerning relations between muscle fibre length and joint angles in a human arm. While GUI offers nice and intuitive ways to plot correct graphs, and to export them into formats understood by OpenSim, I can't seem to find a way to prepare them for use with Excel/MatLab.
Any help would be appreciated, and thanks in advance!

Re: Newbie problems with exporting plot data

Posted: Fri Jun 29, 2018 2:27 pm
by tkuchida
Please refer to the User's Guide on Confluence (https://simtk-confluence.stanford.edu/d ... %27s+Guide)---specifically, see the "Exporting and Printing" page in the "Plotting" section: https://simtk-confluence.stanford.edu/d ... d+Printing.

Re: Newbie problems with exporting plot data

Posted: Sat Jun 30, 2018 3:48 am
by immedicale
That's actually exactly what I did- and I had no problems exporting it as an .sto or .mot file, but I can't seem to get them to work in any other program than OpenSim itself.

Re: Newbie problems with exporting plot data

Posted: Sun Jul 01, 2018 11:40 pm
by tkuchida
.sto and .mot files are tab delimited; they can be opened/imported in Excel and MATLAB. You can also open them in a text editor like Notepad++. I would try opening reference files found in your OpenSim installation directory (e.g., C:\OpenSim 3.3\Models\Arm26\OutputReference\ForwardDynamics\PhysiologicalResults) to determine whether the issue is with opening a file of this type or saving from the plotter.

Re: Newbie problems with exporting plot data

Posted: Mon Jul 02, 2018 11:52 am
by immedicale
Thanks for the suggestion!
The problem seems to lie in exporting the data itself. Example files work as intended, but the ones created by exporting data from a plot into a *.sto or *.mot file are empty, and weigh 0b.

Re: Newbie problems with exporting plot data

Posted: Mon Jul 02, 2018 12:26 pm
by tkuchida
I did not encounter an issue. Here were my steps:
- start OpenSim 3.3 GUI
- open arm26.osim model
- Tools -> Plot...
- Y-Quantity -> fiber-length
- Muscles... -> BRA
- X-Quantity -> r_elbow_flex
- click "Add" button
- right-click plot area -> Export Data...
The resulting file can be opened in Excel and generates the same plot shown in the GUI.