Search found 15 matches

by Anthony Santago
Tue Jan 13, 2015 7:31 pm
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 1008

Re: Plugin Scripting with plotter

Based on some testing with the python plotter scripting interface using the addMotionCurve I am able to access the following information: Moment Arm : addMotionCurve(plotterPanel, 'momentArm.elv_Angle', muscle[0], motSrc); Moment : addMotionCurve(plotterPanel, 'moment.elv_Angle', muscle[0], motSrc);...
by Anthony Santago
Tue Jan 13, 2015 7:01 am
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 1008

Re: Plugin Scripting with plotter

Ayman,

Thank you for the information. The setMaxX functionality worked perfectly. Interestingly, as long as the value that is sent to setMaxX is greater than the maximum motion time, the plotter will default to the maximum time from the motion.

Thank you again for your help.
Anthony
by Anthony Santago
Fri Jan 09, 2015 8:19 am
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 1008

Re: Plugin Scripting with plotter

I updated the "BothLegsWalk.mot" to include one extra time point at 1.02 seconds and changed the number of rows to 52 instead of 51. I then doubled checked my problem against the "plotMuscleMomentArmAgainstMotion.py" that comes with the OpenSim download, to ensure that I was coding things correctly,...
by Anthony Santago
Tue Jan 06, 2015 2:20 pm
Forum: OpenSim
Topic: Upper Extremity Dynamic Model
Replies: 2
Views: 486

Re: Upper Extremity Dynamic Model

Hello Wang,

In the instructions for the download there is a comment that says; "Note that we recommend use of OpenSim 3.1, 64 bit. Release 3.2 currently conflicts with the model."

I hope this helps.
Anthony
by Anthony Santago
Mon Dec 15, 2014 3:53 pm
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 1008

Plugin Scripting with plotter

I'm attempting export moment vs task data directly from the plotter based on a motion file that I importing. However, when I plot (addMotionSource) in the python scripting I only get from 0 - 1sec of the entire motion (see figure 45). When I use the plot drop down menu to perform the same action I a...
by Anthony Santago
Wed Mar 06, 2013 8:21 am
Forum: OpenSim
Topic: Accessing ThelenMuscle2003 through model class tree
Replies: 2
Views: 766

Accessing ThelenMuscle2003 through model class tree

I am attempting to access properties of a specific muscle type through the model tree using the Matlab API interface. However, I am unsure how to go from the Muscle class to the ThelenMuscle2003 class. ie import org.opensim.modeling.* modelName = Test.osim; Model = model(modelName); MuscleSet = Mode...
by Anthony Santago
Wed Nov 21, 2012 4:55 pm
Forum: OpenSim
Topic: Matlab interface to x and y data in plotting tool
Replies: 7
Views: 1467

Re: Matlab interface to x and y data in plotting tool

Ayman, I build an AnalyzeTool.xml that has a MuscleAnalysis inside the AnalysisSet. I have set compute_moment to TRUE and insert a number of muscles and a muscle_list. Within the .xml I have this written <solve_for_equilibrium_for_auxiliary_states>true</solve_for_equilibrium_for_auxiliary_states> .....
by Anthony Santago
Wed Nov 21, 2012 2:33 pm
Forum: OpenSim
Topic: Matlab interface to x and y data in plotting tool
Replies: 7
Views: 1467

Re: Matlab interface to x and y data in plotting tool

Ayman, Thank for you quick reply. The problem I'm running into is that the muscles seem to have no activation when I use the motion file as input into the AnalyzeTool. The muscle lengths and passive forces that I get from Matlab are identical to what is coming out of the plotter tool regardless of t...
by Anthony Santago
Wed Nov 21, 2012 8:51 am
Forum: OpenSim
Topic: Matlab interface to x and y data in plotting tool
Replies: 7
Views: 1467

Re: Matlab interface to x and y data in plotting tool

Ayman, Thank you for your reply. It was most helpful and has allowed me to make substantial progress. I used a motion file inserted into the AnalyzeTool.xml and was able to calculate passive force and moment without much of problem. However, I am having difficulty obtaining active force and moment. ...
by Anthony Santago
Mon Nov 05, 2012 7:12 am
Forum: OpenSim
Topic: Matlab interface to x and y data in plotting tool
Replies: 7
Views: 1467

Matlab interface to x and y data in plotting tool

I’m working on a surgical simulation analysis where I need to move the muscle origins close to 300 times. I have figured out how to update the .osim files within matlab to change the PathPoint locations and save a new .osim file. However, I’m currently having difficultly trying to gather the data wi...