Plot change in tendon length

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
nilay Shah
Posts: 11
Joined: Sat Sep 28, 2013 4:10 pm

Plot change in tendon length

Post by nilay Shah » Fri Feb 07, 2014 1:49 pm

I have a motion file representing angle of ankle. I wanted to plot tendon change vs ankle angle from motion file. The normal method of plotting using tool -> plot... gives me data from ankle angle -90 to 90 degrees. My motion file contains ankle angle 0.07 to 0.45 radians. How can I plot tendon length data based on simulation of the model ?

I would like to clarify if this question is not clear.

Thank you for your time and help,
Nilay

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Plot change in tendon length

Post by jimmy d » Fri Feb 07, 2014 2:01 pm

Nilay,

If you have motion loaded; In the plotter select X-QUANTITY>>Coordinates(Deg.)

hope that helps,
-James

User avatar
nilay Shah
Posts: 11
Joined: Sat Sep 28, 2013 4:10 pm

Re: Plot change in tendon length

Post by nilay Shah » Fri Feb 07, 2014 7:18 pm

Thank you for your response however there is limitation in using this feature. In the motion file, I have data that provides the ankle position during landing. This angle increases and decreases rather than strictly increasing. I think this is causing the error in the plot. I was wondering if this is the limitation of opensim. I understand that at same angle of ankle, the tendon length will be same but the forces could be different on ankle at different time and this could be causing different length changes in muscle. That's the reason for me to see values at different angle of ankle.

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Plot change in tendon length

Post by jimmy d » Tue Feb 11, 2014 11:49 am

Hi Nilay,

The OpenSim plotter can plot almost all muscle properties (that I am aware of) against the joint angles during a motion. The crucial thing is to have the model AND motion loaded in the GUI. In the plotter you would then select "Y-Quantity: tendon-length", "Muscle:med_gas_r", "X-Quantity:Coordinate(Deg.)"

In the below (linked) tutorial, it shows you how to plot muscle properties during a crouch gait walking cycle; http://simtk-confluence.stanford.edu:80 ... l+Modeling

Let us know how it goes,
-james

User avatar
nilay Shah
Posts: 11
Joined: Sat Sep 28, 2013 4:10 pm

Re: Plot change in tendon length

Post by nilay Shah » Thu Feb 13, 2014 6:13 pm

Thank you for your response and link you provided. This link you provided was extremely helpful for following the plot however even after following the rules, I am still having error. I have attached the error message to give you idea of the error message I have encountered. Currently I have installed Opensim 3.1. Motion file contains 3 columns: time, subtalar_angle_r and ankle_angle_r. The model I am using for my project is "Simulation-Based Design to Prevent Ankle Injuries". Here is the link
http://simtk-confluence.stanford.edu:80 ... e+Injuries.

Thank you for your time and help
Nilay
Attachments
error_message.txt
(3.16 KiB) Downloaded 77 times

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Plot change in tendon length

Post by jimmy d » Fri Feb 14, 2014 2:50 pm

Error message read: "Bad call to Simbody API method GCVSPLUtil::gcvspl(): The values in x must be strictly increasing"

The error is coming from the data being passed to a spline function. This suggests that your time data isn't strictly increasing.

Let us know if that helps,
-james

User avatar
nilay Shah
Posts: 11
Joined: Sat Sep 28, 2013 4:10 pm

Re: Plot change in tendon length

Post by nilay Shah » Sun Feb 16, 2014 11:44 am

Thank you for your help. This helped me in understanding my mistake. In fact, now I realized my other techniques that I implemented for the generating .mot file.

-Nilay

User avatar
Ryan Bakker
Posts: 16
Joined: Wed Aug 08, 2012 10:08 am

Re: Plot change in tendon length

Post by Ryan Bakker » Thu Feb 20, 2014 3:32 pm

James,

Is the plotter able to plot ligament class properties as well?

-Ryan

POST REPLY