Changing CoordinateLimitForce properties in Matlab script
Posted: Wed May 06, 2015 10:04 am
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!
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!