Programmatically make library targetlink compliant
Mostra commenti meno recenti
Hello, I have several "old" Simulink libraries and I have to make each of them "targetlink compliant".
In my Simulink Toolbar I have a button Targetlink -> Make Library TargetLink Compliant
Then I save my model and that's it. Is there a Matlab command that runs the "Make Library TargetLink Compliant"? I would like to automate the process in order to run it automatically on all my libraries.
Thank you in advance,
Dario Cassaniti
3 Commenti
zhang
il 18 Mar 2025
Spostato: Walter Roberson
il 18 Mar 2025
解决了吗?
Walter Roberson
il 18 Mar 2025
Is it solved?
Fangjun Jiang
il 27 Mar 2025
tl_prepare_system() is the correct answer for this.
From the help document.
tl_prepare_system Prepares the Simulink system (subsystem, model, or library) for TargetLink.
REMARKS
If called without output arguments, the TargetLink Message Browser opens after preparation and displays messages
that have been produced. If called without input and output arguments, the System Preparation dialog opens,
enabling you to prepare Simulink systems interactively.
Risposte (1)
Fangjun Jiang
il 12 Nov 2020
0 voti
I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.
4 Commenti
Dario Cassaniti
il 12 Nov 2020
Fangjun Jiang
il 12 Nov 2020
there must be options to avoid the dialog.
Dario Cassaniti
il 12 Nov 2020
Fangjun Jiang
il 27 Mar 2025
It is the right command. Provide the proper inputs and outputs argument so the interactive dialog won't appear.
From the help document.
tl_prepare_system Prepares the Simulink system (subsystem, model, or library) for TargetLink.
SYNTAX [options, msgStruct] = tl_prepare_system(propertyName, propertyValue, ...)
REMARKS
If called without output arguments, the TargetLink Message Browser opens after preparation and displays messages
that have been produced. If called without input and output arguments, the System Preparation dialog opens,
enabling you to prepare Simulink systems interactively.
Categorie
Scopri di più su Simulink Environment Customization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!