Error Help

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Alison Rogozinski
Posts: 14
Joined: Tue Jun 07, 2016 7:44 am

Error Help

Post by Alison Rogozinski » Fri Aug 12, 2016 6:52 am

Hello,
I am setting up a sensitivity analysis and most of the parameters work. Currently I keep getting the error of

No appropriate method, property, or field getMaximumShorteningVelocity for class
org.opensim.modeling.Muscle.

Error in MainAPIScript7 (line 103)
origMaxShortVelocity = origCMCModel.getMuscles().get(n1-1).getMaximumShorteningVelocity();

Can anyone help me with why this is? Here is the part of the code that gets the error.

origMaxShortVelocity = origCMCModel.getMuscles().get(n1-1).getMaximumShorteningVelocity();
newMaxShortVelocity = MSVAdj.*origMaxShortVelocity;
newCMCModel.getMuscles().get(n1-1).setMaximumShorteningVelocity(newMaxShortVelocity);

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

Re: Error Help

Post by jimmy d » Fri Aug 12, 2016 8:16 am

Code: Select all

model = Model('arm26.osim')
muscle = model.getMuscle().get(1)
muscle.setMaxContractionVelocity(12)

POST REPLY