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
- Start MATLAB from a Command Prompt using:
matlab.exe -softwareopengl
- 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
- Close all dSPACE applications and MATLAB.
- Open
dSPACE Installation Managerand disconnect MATLAB from all integrated dSPACE products (for example, RCP and HIL Software, TargetLink, etc.). - Close
dSPACE Installation Manager.
- Start MATLAB.
- After MATLAB has started successfully, enter the following command in the MATLAB Command Window:
opengl('save','software')
- Close MATLAB.
- Reopen
dSPACE Installation Managerand re-establish the integration between MATLAB and the required dSPACE products (for example, RCP and HIL Software, TargetLink, etc.). - Close
dSPACE Installation Manager. - 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
Tags
| Date | 2026-11-02 |
| Information Type | Frequently Asked Questions |