Simulink DESKTOP REAL-TIME does not work

21 views (last 30 days)
Seokhwan
Seokhwan on 7 Oct 2024
Commented: Rishav on 8 Oct 2024
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)

Seokhwan
Seokhwan on 8 Oct 2024
I resolved this issue by enabling Hyper-V in Window 11 and MATLAB R2024a.
  1 Comment
Rishav
Rishav on 8 Oct 2024
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:

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!