MATLAB Mechanic explorer loading slow compare to simulink simulation.

6 vues (au cours des 30 derniers jours)
khoi
khoi le 19 Sep 2024
Réponse apportée : Abhas le 6 Déc 2024
I am runinng a simple robot simulation on my desktop, while the simulink section runs fast, the mechanic explorer take a long time to catchup, ie 10+min. I have tried running the model on a different device and it ran fine. The device I am currently using have more ram, better GPU and CPU. Here is a list of a few things i have tried:
  • I deleted all version of matlab and install the latest version
  • I have move my foler to the same hard drive as matlab
  • download matlab on my boot dirve
  • i have tried running "matlab -softwareopengl" on my cmd and "opengl hardwarebasic" on matlab
  • looking up the issue on chatgpt
  2 commentaires
Yifeng Tang
Yifeng Tang le 21 Sep 2024
Is it possible to share your model for the community to reproduce and investigage your problem?
khoi
khoi le 23 Sep 2024
Here is the attached model, i have also included the STL file for the geometry, When i turn of the mechaninc explorer, the simulation take alot longer to load.

Connectez-vous pour commenter.

Réponses (1)

Abhas
Abhas le 6 Déc 2024
The issue likely lies in rendering or software configuration, not hardware. MATLAB's Mechanics Explorer relies on OpenGL, and the problem may stem from drivers, rendering settings, or MATLAB preferences. Here's how to address it:
  • Ensure OpenGL is Optimally Configured: Run these commands in MATLAB:
opengl hardware
opengl info
%Verify GPU acceleration is enabled. If not, the GPU driver or configuration may be the issue.
  • Update GPU Drivers: Download the latest drivers from the GPU manufacturer (NVIDIA, AMD, Intel). Install and restart the system.
  • Lower Graphics Fidelity: Reduce rendering load by setting Mechanics Explorer to low graphics mode:
mech_explorer = simevents.ExplorationSettings();
mech_explorer.GraphicsRenderingMode = 'low';
You may refer to the below documentation link that might help you resolve your issue:

Catégories

En savoir plus sur Configure and View Diagnostics dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by