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:
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
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.