Newbie problems with exporting plot data

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Paweł Jasiński
Posts: 3
Joined: Mon Apr 16, 2018 11:24 am

Newbie problems with exporting plot data

Post by Paweł Jasiński » Fri Jun 29, 2018 9:33 am

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!

Tags:

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

Re: Newbie problems with exporting plot data

Post by Thomas Uchida » Fri Jun 29, 2018 2:27 pm

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.

User avatar
Paweł Jasiński
Posts: 3
Joined: Mon Apr 16, 2018 11:24 am

Re: Newbie problems with exporting plot data

Post by Paweł Jasiński » Sat Jun 30, 2018 3:48 am

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.

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

Re: Newbie problems with exporting plot data

Post by Thomas Uchida » Sun Jul 01, 2018 11:40 pm

.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.

User avatar
Paweł Jasiński
Posts: 3
Joined: Mon Apr 16, 2018 11:24 am

Re: Newbie problems with exporting plot data

Post by Paweł Jasiński » Mon Jul 02, 2018 11:52 am

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.

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

Re: Newbie problems with exporting plot data

Post by Thomas Uchida » Mon Jul 02, 2018 12:26 pm

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.

POST REPLY