探索全新的 mydSPACE 服务: 许可证管理、全新的 dSPACE 帮助以及用于用户文档的 dSPACE 聊天机器人。请访问我们的专用支持页面,获取更多信息和支持。 链接了解更多并获取支持

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
资料信息 常见问答

通过 dSPACE时事通讯服务了解最新信息。

通过 dSPACE 时事通讯服务,我们将随时向您通报当前的使用案例、新解决方案和产品以及培训和活动。在此注册,免费订阅。

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.