Failed to load 'xpclib' library referenced by 'block_name'
13 views (last 30 days)
Show older comments
Peman
on 30 Sep 2025 at 16:03
Commented: Peman
on 1 Oct 2025 at 16:06
Hello,
I have an old R2011b Simulink model that I tried opening in R2025b. Upon opening the model in R2025b, I see the following:
My "CAN Setup" block in Simulink is highlighted in red and says: "xpclib" not found. The top yellow banner says: "This model contains Simulink Real-Time features that are incompatible with the current release. Open Upgrade Advisor and select "Check model for upgradable Simulink Real-Time features". Upon running the Upgrade Advisor, I get the following error:
Error occurred during model compile.
Failed to load library 'xpclib' referenced by 'CAN Setup'.
Any idea on how to solve this particular problem? My understanding is that 'xpclib' (xPC Target) no longer exists in R2025b because it was replaced by Simulink Real-Time. I just don't know how to convert my block to the newer library.
Thank you!
0 Comments
Accepted Answer
Dimitri MANKOV
about 10 hours ago
Hello Peman,
xPC Target has been replaced by Simulink Real-Time quite some time ago (around 2014, if I'm not mistaken). Furthermore, support for custom target hardware has been removed from Simulink Real-Time in R2018a. Starting from that release, only Speedgoat target machines are supported.
I'm therefore afraid that the jump from R2011b to R2025b is simply too great for the Model Upgrade Advisor to replace all the blocks that have been deprecated since then with their newest counterparts. Specifically, CAN driver blocks are now part of the Speedgoat I/O Blockset and are compatible with the CAN I/O modules sold by Speedgoat.
For more information, have a look at www.speedgoat.com and at the Release Notes for Simulink Real-Time.
I hope this is helpful!
Dimitri
More Answers (0)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!