Simulink DESKTOP REAL-TIME does not work

Version: MATLAB 2024b (I just install all package)
OS: Window 11
I just installed latest version of MATLAB 2024b, and run the simulink example below,
openExample('sldrt/SldrtCreateARealTimeApplicationExample')
After I click 'Run in Real Time', the Simulink was stuck at 0.000s to 0.015s ( only 3step for 1 min). And it finally stops and shows the error:
---------------------------------------------------------------------------------------------------------------------------------------
Warning: The 'Real-Time Synchronization' block has timed out while trying to synchronize to real-time kernel.
Warning: The 'Real-Time Synchronization' block has timed out while trying to synchronize to real-time kernel.
Warning: The 'Real-Time Synchronization' block has timed out while trying to synchronize to real-time kernel.
Warning: The 'Real-Time Synchronization' block has timed out while trying to synchronize to real-time kernel.
Error:An error occurred during simulation and the simulation was terminated
Caused by:
Synchronization to real-time kernel has failed.
---------------------------------------------------------------------------------------------------------------------------------------
Is there any incompatibility between MATLAB and Window 11 now? Any kernel issue?
I have used the Simulink DESKTOP REAL-TIME for long time, and it worked well at least a year ago.

Answers (1)

I resolved this issue by enabling Hyper-V in Window 11 and MATLAB R2024a.

2 Comments

Thank you Seokhwan for the confirmation.
For anyone else, who is facing the same issue, the issue is related to the fact that Hyper-V is enabled.
In order to check this, execute the following command from the MATLAB command window:
>> !systeminfo
If Hyper-V is enabled, the following will be displayed at the bottom line as the output of the above command:
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
Please refer to the following MATLAB Answers posts to see similar issues when Simulink real-time synchronization times out when Hyper-V is enabled:
Also, if you are facing any issues with disabling the Hyper-V feature for Simulink Desktop real-time, please refer to the MATLAB Answer post below:
I used the Real-Time Synchronization and Simulation Pace modules separately to achieve real-time simulation. The selected model was the same, and the simulation time was 100 seconds. I evaluated the runtime using the Simulink Profiler. I found that Real-Time Synchronization increases the simulation time, while Simulation Pace does not have this negative effect. Why this happens?
Real-Time Synchronization:
Simulation Pace:

Sign in to comment.

Asked:

on 7 Oct 2024

Commented:

on 7 May 2026 at 14:48

Community Treasure Hunt

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

Start Hunting!