How to impose initial condition on an actuated joint in SimMechanics model?

81 views (last 30 days)
I am currently trying to impose an initial condition on an actuated joint. However, this initial condition should not be imposed through the controller for the actuator. I want the two to be interdependent. Can you give me any advise on how to achieve achieve this?

Accepted Answer

Steve Miller
Steve Miller on 8 Mar 2018
You can specify target values for the initial position and velocity for any joint. This is independent of the value that the controller determines at the start of simulation. You could link these two together using MATLAB variables.
Expand the State Targets group in the joint dialog box parameters. There is a State Targets group for each degree of freedom of the joint.
--Steve
  1 Comment
Guoping Zhao
Guoping Zhao on 19 Jun 2018
Hi Steve,
Is it possible to set the joint initial position and velocity as tunable parameter? I'm running the model in rapid mode. I have to recompile the model every time I change the joint initial condition.
I also posted the question here: https://www.mathworks.com/matlabcentral/answers/399559-simmechanics-joint-initial-condition-tunable-parameter
Thanks. --Guoping

Sign in to comment.

More Answers (0)

Categories

Find more on Simscape Multibody in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!