Simscape Mechanics Explorer really slow

Good morning,
I've been working with Simscape Multibody for my Master thesis for one month with no particular issue.
Yesterday after having experienced an unexpected "Invalid Object id error", solved by simply restarting MATLAB I found out that the Mechanics Explorer became much slower, after compilation it takes many seconds for rendering, simulation is laggy and interface for changing view and speed is not responsive.
My work involves flexible objects manipulation so I thought it was due to the computation required (even if I haven't experienced this problem before), but in fact the same problem arises for simulations with simpler examples even contained in add-ons.
I tried to uninstall and reinstall Simscape Multibody toolbox but the situation was the same.
Any answer would be of great help,
Thanks

1 Comment

EDIT: the "Invalid Object id error" has never appeared again after the first time

Sign in to comment.

 Accepted Answer

Seems that this link allows to solve the problem:
In Windows/Linux prompt
matlab -softwareopengl
In MATLAB prompt
opengl hardwarebasic
I will add details on the causes of the problem, if I discover more

1 Comment

I had the same issues and could fix it with your suggestion. Thank you.

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!