MATLAB Answers

Why is my Simulink Desktop Real-Time simulation very slow or halts on Windows?

74 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 slow, halts, or may even cause a blue-screen.
The following warning message may be prompted out: 
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Sep 2021 at 4:00
Edited: MathWorks Support Team on 24 Sep 2021 at 8:10
On Windows platform, the issue is likely to be related to the fact that Hyper-V is enabled, since the Simulink Desktop Real-Time Kernel is not compatible with Hyper-V.
In order to check this, execute the following command from the MATLAB Command Window:
>> !systeminfo
If Hyper-V is enabled, it will be displayed at the bottom line of the output of the above command:
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
Try this workaround:
In order to solve the slow running issue with Simulink Desktop Real-Time, please try to disable Hyper-V.
You can disable Hyper-V on your Windows PC by performing the following steps:
1. Go to Control Panel > Programs and Features > Turn Windows features on or off.
2. Clear the box for the Hyper-V feature, and click OK.
3. This operation begins the uninstall process. After it completes, you are prompted to restart the computer.
Refer to the following documentation page for more information regarding this workaround: https://www.mathworks.com/help/sldrt/ug/troubleshoot-slow-or-halted-simulation-on-windows.html
Recent improvements:
We have improved the Simulink Desktop Real-Time product to show the following error message when Hyper-V is detected during the kernel installation (since R2019b) or when trying to run a real-time simulation (since R2020b):
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.
  3 Comments
Jacob Santry
Jacob Santry on 7 Oct 2021 at 19:30
I am still getting Model error `The Hyper-V hypervisor has been detected.` after disabling Hyper-V on windows R2021b
The output of !systeminfo seems to also confirm hyper-v is disabled:
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by