Discover the new mydSPACE services: License Management, the new dSPACE Help, and dSPACE Chatbot for User Documentation. Find more information and support on our dedicated support page. Learn more & get support

FAQ 787: How to fix MATLAB freezing at startup after Integrating with dSPACE

Question

How can I fix MATLAB freezing at startup after integrating with dSPACE?

Solution

In some cases, MATLAB may freeze or hang during startup after integration with dSPACE products. This behavior is typically caused by a low-level graphics issue related to the graphics driver and MATLAB's OpenGL rendering.

To work around this issue, configure MATLAB to use software-based OpenGL rendering by following the steps below. This procedure has resolved the problem in several cases involving graphics driver incompatibilities.

Please try the following steps: 

Step 1: Test MATLAB with Software OpenGL 
  1. Start MATLAB from a Command Prompt using:
matlab.exe -softwareopengl
  1. Alternatively, for troubleshooting purposes, you can try:
matlab.exe -noopengl

If MATLAB starts successfully, the issue is likely related to the graphics driver or OpenGL configuration.

 

Step 2: Save the Workaround Permanently 
  1. Close all dSPACE applications and MATLAB. 
  2. Open dSPACE Installation Manager and disconnect MATLAB from all integrated dSPACE products (for example, RCP and HIL Software, TargetLink, etc.).
  3. Close dSPACE Installation Manager.
     
  4. Start MATLAB. 
  5. After MATLAB has started successfully, enter the following command in the MATLAB Command Window:
opengl('save','software')
  1. Close MATLAB.
     
  2. Reopen dSPACE Installation Manager and re-establish the integration between MATLAB and the required dSPACE products (for example, RCP and HIL Software, TargetLink, etc.). 
  3. Close dSPACE Installation Manager.
  4. Start MATLAB again and verify whether the issue has been resolved. 

 

Recommended Long-Term Solution

Software OpenGL is mainly a workaround. If possible, update the graphics driver (Intel, NVIDIA, or AMD) to the latest version approved by the hardware vendor. In some cases, reverting to a previously stable driver version may also resolve the issue.

 

Additional Information 

MathWorks: Resolving Low-Level Graphics Issues

https://www.mathworks.com/help/releases/R2024b/matlab/creating_plots/resolving-low-level-graphics-issues.html

 

Tags

Date 2026-11-02
Informationstyp FAQ (Häufig gestellte Fragen)

Immer auf dem neuesten Stand mit unserem Newsletter-Service.

Mit unserem Newsletter-Service informieren wir Sie über aktuelle Anwendungsbeispiele, neue Lösungen und Produkte sowie über Schulungen und Veranstaltungen. Hier geht's zur Anmeldung.

Formularaufruf freigeben

An dieser Stelle ist ein Eingabeformular von Click Dimensions eingebunden. Dieses ermöglicht es uns Ihr Newsletter-Abonnement zu verarbeiten. Aktuell ist das Formular ausgeblendet aufgrund Ihrer Privatsphäre-Einstellung für unsere Website.

Externes Eingabeformular

Mit dem Aktivieren des Eingabeformulars erklären Sie sich damit einverstanden, dass personenbezogene Daten an Click Dimensions innerhalb der EU, in den USA, Kanada oder Australien übermittelt werden. Mehr dazu in unserer Datenschutzbestimmung.