Page 1 of 1

set and export parameters of the plot tool

Posted: Sun May 01, 2011 2:36 am
by fausto_p
Hi,

I would need of an explanation about the plotting tool.
1)If I plot a curve (i.e. Moment vs joint angle) can I also set the other coordinates of the model?
For example if I am interested in the Moments of plantaflexors on joint angle can the model takes in account also different positions for the knee?
2)I would like to have access to the points that the Opensim uses to create the curves not right clicking on the graph and saving and external file but finding them on the .osim file. Are they somewhere in there?

Thanks
Cheers
Fausto

RE: set and export parameters of the plot tool

Posted: Mon May 02, 2011 10:20 am
by aymanh
Hi Fausto,

1) You can make the plot against arbitrary motion (instead of a generalized coordinate) and this will allow you to modify multiple coordinates.
2) The values on the plot are not stored with the model, instead they're computed on the fly from the muscle properties, muscle attachment points etc. specified in the model. Different configurations/settings lead to different plots so exporting the data is probably the best you can do. What do you want this data for?

Best regards,
-Ayman

RE: set and export parameters of the plot tool

Posted: Tue May 03, 2011 2:52 am
by fausto_p
Thanks Ayman.
Because I am trying to run as much as I can through Matlab I was wondering if I could avoid to use the plot and so extracting the data maybe directly from the model file.
Regards
Fausto

RE: set and export parameters of the plot tool

Posted: Wed May 04, 2011 9:19 am
by aymanh
Hi Fausto,

Although the data is not in the model file, it can be computed from running the analyze executable with a setup file that contains MuscleAnalysis from the command line (that's what the plotter does under the covers anyway) as such you don't have to run through the GUI/plotter to create these curves.

Please let me know if you'd like to proceed in this direction and you need help.

Best regards,
-Ayman