how to input position velocity acceleration multibody simscape

14 views (last 30 days)
In this picture i want to find torque of robot arm,I have position velocity and acceleration value data to input in simscape multibody (below picture blue circle input).
Diagram input position velocity and acceleration (below picture)
i have problem motion of robot arm isn't true and torque value is over torque . how i can solve this problem ? sorry if my english isn't good and Thank for ur answer help me pls. (i do it long time TT)

Answers (1)

Steve Miller
Steve Miller on 3 Apr 2019
Hi - if you share the model, we can give a better suggestion.
Your method of prescribing motion should work, though it is not the best way. When you use the du/dt block, you can run into numerical issues. We normally recommend either:
  1. Inputting the acceleration and integrating to get the velocity and position OR
  2. Inputting the position and letting Simscape calculate a consistent set of first and second derivatives for the motion. This will put a slight lag in your results, but if you make the filter constant very small the results should be quite close.
If you are not getting the answers you expect, first try one of these methods. You could also try reducing the maximum step size and tolerances and see if this improves the behavior of your model.
--Steve

Community Treasure Hunt

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

Start Hunting!