Real time kernel Error. S-function error.
78 views (last 30 days)
Christopher Schlüting on 22 Jul 2020
Hello, i have a problem with the Real-Time features of MatLab.
I try to run some real time examples, but i always get an error message.
An error occurred while running the simulation and the simulation was terminated
- Error reported by S-function 'sldrtsync' in 'sldrtex_vdp/Real-Time Synchronization': Hardware timer cannot be allocated. Real-time kernel cannot run.
I searched on google but did not really found something.
I am running Matlab 2019b for academic use on a Windoes 10 System.
Thanks in advance!
Jan Houska on 16 Feb 2023
the inability to allocate hardware timer for the real-time kernel is most often caused by hardware or software incompatibility between the real-time kernel and the operating system or the computer mainboard.
First, please try to use the latest available release of MATLAB and Simulink Desktop Real-Time, because compatibility between the real-time kernel and latest updates of operating systems is being constantly improved from release to release.
If you are already using the latest version of Simulink Desktop Real-Time and think that the reason is hardware incompatibility, please go to Device Manager and search the System Devices section for High Precision Event Timer (HPET). If the HPET device is not present, it may be disabled in BIOS settings and needs to be enabled there.