Page 1 of 1

Error Help

Posted: Fri Aug 12, 2016 6:52 am
by alisonrogo
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);

Re: Error Help

Posted: Fri Aug 12, 2016 8:16 am
by jimmy

Code: Select all

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