Invalid Simulink object name: loader

78 views (last 30 days)
Xinnini
Xinnini on 14 Jul 2020
Answered: Russell on 20 Jan 2025 at 20:48
When i build an example model in simulink ,it occurs the error
The call to slrt_make_rtw_hook, during the exit hook generated the following error: Invalid Simulink object name: loader The build process will terminate as a result.
Caused by:
  • Invalid Simulink object name: loader
  • No block diagram 'loader' is loaded.
Component:Simulink,simulink real-time | Category:build model
  6 Comments
dongjie fu
dongjie fu on 2 Sep 2021
Has this issue been solved or not?

Sign in to comment.

Accepted Answer

Pablo Romero
Pablo Romero on 5 Oct 2021
Check the error message on the target console, either by looking at the screen or with the 'getConsoleLog' function: https://www.mathworks.com/help/releases/R2018b/xpc/api/simulinkrealtime.utils.getconsolelog.html?s_tid=doc_ta
It will provide useful data about what the actual cause of the failure is.
  1 Comment
Stefanie Schwarz
Stefanie Schwarz on 5 Apr 2023
If the error in the console is:
"Unable to load DLL dependency: KERNEL32.dll.GetFileSizeEx"
then you are probably affected by the bug described here:
But there can be possible other causes. Please contact MathWorks Technical Support for help: https://www.mathworks.com/support/contact_us.html

Sign in to comment.

More Answers (1)

Russell
Russell on 20 Jan 2025 at 20:48
I also had this issue when using Simulink Realtime R2017b - my error included the message that
The call to slrt_make_rtw_hook, during the exit hook generated the following error: Invalid Simulink object name: loader
My fix was found by clearing more space on my target PC.

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!