MATLAB: Does Simulink Real-Time run very slow in MATLAB R2018b on Windows and a “Real-Time Synchronization” warning message is displayed

r2018breal timesimulinksldrtex_vdpslowtimeoutwindows

I am trying to use Simulink Real-Time in MATLAB R2018b but, even if I launch the example model "sldrtex_vdp.slx", it runs very slow on my Windows PC.
Moreover, the following warning message is prompted out:
Warning: The "Real-Time Synchronization" block has timed out while trying to synchronize to real-time kernel.

Best Answer

On Windows platform, the issue could be more likely related to the fact that Hyper-V is enabled, since the Simulink Real-Time Kernel is not compatible with Hyper-V.
In order to check this, you could 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.
In order to solve the slow running issue in MATLAB R2018b, 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 → Turn Windows features on or off
2. Uncheck Hyper-V settings, and click OK.
Please find more information on this workaround at the following documentation page: