Search found 10 matches

by Colton Sauer
Mon Sep 28, 2015 2:51 pm
Forum: OpenSim
Topic: Restricting movement to one plane?
Replies: 3
Views: 276

Re: Restricting movement to one plane?

I'm assuming you mean the local coordinate system for the foot, not the global. The easiest method to restrict motion to only the x-y plane will be to lock the ankle rotation coordinate in your model through the OpenSim GUI. Just click on the coordinates pane and scroll down to the ankle coordinates...
by Colton Sauer
Wed Aug 05, 2015 11:02 am
Forum: OpenSim
Topic: MATLAB returning zero fiber lengths
Replies: 5
Views: 582

Re: MATLAB returning zero fiber lengths

Great thank you! That would explain why the two Thelen muscles in the model are returning normalized fiber lengths but the deprecated ones are not.
by Colton Sauer
Wed Jul 22, 2015 8:06 am
Forum: OpenSim
Topic: Getting error while scripting in Matlab
Replies: 1
Views: 242

Re: Getting error while scripting in Matlab

Did you reconfigure OpenSim in MATLAB after you upgraded to 2015b?
by Colton Sauer
Tue Jul 21, 2015 12:21 pm
Forum: OpenSim
Topic: MATLAB returning zero fiber lengths
Replies: 5
Views: 582

Re: MATLAB returning zero fiber lengths

Also:

Code: Select all

No appropriate method, property, or field equilibriateMuscles for class
org.opensim.modeling.Model.

Error in getNFL (line 68)
   myModel.equilibriateMuscles(s)
Is there an issue with installation if these are missing?
by Colton Sauer
Tue Jul 21, 2015 11:55 am
Forum: OpenSim
Topic: MATLAB returning zero fiber lengths
Replies: 5
Views: 582

Re: MATLAB returning zero fiber lengths

Thanks for the help again James, but whenever I try to downcast the muscle type, I get this error. Undefined variable "Schutte1993Muscle_Deprecated" or class "Schutte1993Muscle_Deprecated.safeDownCast". Error in getNFL (line 63) eval(['myMuscle =' muscleType '.safeDownCast(myForce);']) I was using y...
by Colton Sauer
Thu Jul 16, 2015 7:40 am
Forum: OpenSim
Topic: MATLAB returning zero fiber lengths
Replies: 5
Views: 582

MATLAB returning zero fiber lengths

Hi, I've been working on some code to calculate Normalized Fiber Lengths throughout a walking cycle. I've been able to set up the model to run through the motion by updating the coordinates, but whenever I call either the fiber length or normalized fiber length, a value of zero is always returned. H...
by Colton Sauer
Mon Jul 06, 2015 12:42 pm
Forum: OpenSim
Topic: Calculating Muscle Lengths in MATLAB using OpenSim
Replies: 2
Views: 300

Re: Calculating Muscle Lengths in MATLAB using OpenSim

Thank you for the example code! It shows how to access the normalized fiber lengths, which was exactly what I was trying to find.
by Colton Sauer
Mon Jun 29, 2015 10:59 am
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 718

Re: Plugin Scripting with plotter

This is the link with the variables you can plot:
https://simtk.org/api_docs/opensim/gui_ ... otter.html
by Colton Sauer
Mon Jun 29, 2015 10:38 am
Forum: OpenSim
Topic: Plugin Scripting with plotter
Replies: 6
Views: 718

Re: Plugin Scripting with plotter

Anthony, I had a similar problem. The fiber length of the muscle can be accessed using "FiberLength". I tried some of the other variables you were having issues with as well. It seems that if you capitalize the first letter of each word and remove all spaces from the GUI variable names, then you can...
by Colton Sauer
Fri Jun 26, 2015 2:05 pm
Forum: OpenSim
Topic: Calculating Muscle Lengths in MATLAB using OpenSim
Replies: 2
Views: 300

Calculating Muscle Lengths in MATLAB using OpenSim

Hi All, I have experience with both OpenSim and MATLAB, but I am having a difficult time understanding how they fit together. I have already found how to load my model, but I am not sure how to apply a .mot to it and then extract the muscle length data (as a function of the motion) to store into a M...