Creating traceability links is not supported for objects in Simulink built-in libraries

26 vues (au cours des 30 derniers jours)
Piyush
Piyush le 10 Oct 2025 à 12:38
Modifié(e) : Walter Roberson le 15 Oct 2025 à 17:32
Getting the exception
Error using slreq.createLink
Link creation failed.
Caused by:
Error using slreq.createLink
Creating traceability links is not supported for objects in Simulink built-in libraries
When calling slreq.createLink with a System Composer component object as the first argument, and a struct as the second argument. Also tried using requirement as the second arg, but still getting the exception.
As I understand it, this error is thrown when you try to link library components, but this component is from a newly created System Composer model.
Any idea what might be the issue? Tried this on both R2024b and R2025a.
Edit: An interesting thing I just noticed is that this error does not occur when the model hasn't been saved yet. Only after you save the model does it occur.
  3 commentaires
Piyush
Piyush il y a environ 18 heures
Hey Josh,
I found out the issue. For anyone who encounters it in the future, It was because the slx file was present in the Matlab/bin folder. Loading a model from the Matlab installation directory seems to break the linking, Moving the model elsewhere seems to fix the issue.
Thanks a lot!
Josh Kahn
Josh Kahn il y a environ 10 heures
Ah, glad you got it figured out!
Josh

Connectez-vous pour commenter.

Réponses (1)

Josh Kahn
Josh Kahn il y a environ 10 heures
"It was because the slx file was present in the Matlab/bin folder. Loading a model from the Matlab installation directory seems to break the linking, Moving the model elsewhere seems to fix the issue."

Catégories

En savoir plus sur System Composer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by