Hello,
I'm trying to change the stiffness values of a CoordinateLimitForce element via Matlab script. So far I am able to get the CoordinateLimitForce element as a 'Force' object, then get write access to the properties 'lower_limit' and 'upper_limit' as an AbstractProperty. Here's the script I have so far:
osimModel.getForceSet.get('element_name').updPropertyByName('upper_limit')
I'm trying to change the stiffness values, but I can't figure out from the documentation how to actually do so. Maybe there's a more straightforward way than how I'm attempting it. Does anyone else know how? The property is of type 'double'.
I'd really appreciate someone's help with this. Thank you!
Changing CoordinateLimitForce properties in Matlab script
- Dustin Crouch
- Posts: 5
- Joined: Tue Jan 05, 2010 11:56 am
Re: Changing CoordinateLimitForce properties in Matlab scrip
Hi Dustin-
You may have to use a safedowncast method to access the CoordinateLimitForce methods.
This link has an example of using safedowncast on a joint type.
Let us know if that helps
-James
You may have to use a safedowncast method to access the CoordinateLimitForce methods.
This link has an example of using safedowncast on a joint type.
Let us know if that helps
-James