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
Information Type Frequently Asked Questions

Stay up-to-date with our dSPACE direct newsletter service.

With our dSPACE newsletter service, we will keep you informed about current use cases and new solutions and products, as well as trainings and events. Sign up here for a free subscription.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.