Real time kernel Error. S-function error.
71 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christopher Schlüting
am 22 Jul. 2020
Kommentiert: Jizheng
am 1 Sep. 2025 um 1:49
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
Caused by:
- 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!
6 Kommentare
Nazmi Rosly
am 23 Aug. 2021
I also faced this problem. I have tried uninstall and install back the realtime kernel but it seems not to work
- Error reported by S-function 'sldrtoo' in 'scope/ThingSpeak Output': Hardware timer cannot be allocated. Real-time kernel cannot run.
Walter Roberson
am 23 Aug. 2021
Possibly that message could also be generated if the design required more hardware timers than existed for the device. It has been years since I saw the messages posted for that context, so I do not recall at the moment whether that case would generate this message or would generate a different more-specific message.
Akzeptierte Antwort
Jan Houska
am 16 Feb. 2023
Hello,
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.
Jan
7 Kommentare
Jan Houska
am 25 Aug. 2025 um 12:33
Hi Jizheng,
please update to the latest R2023a Update 8, then reinstall the kernel using sldrtkernel -setup. The update contains some compatibility improvements with Windows 11 and has a good chance to help.
Good Luck, Jan
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Troubleshooting in Simulink Desktop Real-Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!