Why is my Simulink Desktop Real-Time simulation very slow or halts in Windows when Hyper-V is enabled?

34 views (last 30 days)
I am trying to use Simulink Desktop Real-Time (SLDRT) on my Windows machine, but when I launch the example model "sldrtex_vdp.slx", it runs very slowly, halts, or may even cause a bluescreen.
The following warning message may be prompted: 
Warning: The "Real-Time Synchronization" block has timed out while
trying to synchronize to real-time kernel.
The following warning messages may be shown in Diagnostic Viewer:
Model sldrtex_vdp loaded
A disconnect message was sent to the target 10 seconds ago. Waiting for response.. [6 similar]
Never received disconnect response from target. Disconnecting...
Model sldrtex_vdp unloaded
Additionally, I may see the following error message in MATLAB R2022b and earlier during the kernel installation, or when trying to run a real-time simulation:
The Hyper-V hypervisor has been detected. The Simulink Desktop Real-Time kernel
cannot run in the presence of the hypervisor. Please disable the Hyper-V operating
system component before attempting to use Simulink Desktop Real-Time.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Nov 2025
Edited: MathWorks Support Team on 20 Nov 2025
In MATLAB R2022b and earlier, the Simulink Desktop Real-Time (SLDRT) kernel is not compatible with Microsoft® Hyper-V or any features that rely on Microsoft virtualization technology. If Hyper-V is enabled, SLDRT cannot load and start the real-time kernel, and you will see error messages indicating this failure. Disabling Hyper-V is mandatory when using MATLAB R2022b or prior versions.
Starting with MATLAB R2023a and later, the SLDRT kernel includes support for Hyper-V. However, this does not guarantee full compatibility on all systems. In some cases, SLDRT may still fail to run correctly when Hyper-V is enabled. If you encounter issues such as halts, crashes, or kernel load failures, you should disable Hyper-V as a troubleshooting step, even on newer releases.

How to disable Hyper-V:

Disable Hyper-V on your Windows PC by performing the following steps:
1. Find Turn Windows features on or off by using Windows search.
2. Clear the boxes for the following features:
  • Hyper-V
  • Virtual Machine Platform
  • Windows Hypervisor Platform
  • Windows Subsystem for Linux
This operation begins the uninstall process.
3. Restart the computer as prompted after the uninstall process completes.
 

Further Troubleshooting:

If the above steps don't help, please see the following MATLAB Answers post for troubleshooting steps:

More Answers (0)

Categories

Find more on Simulink Desktop Real-Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!