Programmatically make library targetlink compliant

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

zhang
zhang 2025년 3월 18일
이동: Walter Roberson 2025년 3월 18일
解决了吗?
Approximate translation of what @zhang posted:
Is it solved?
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 11월 12일

0 개 추천

I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.

댓글 수: 4

unfortunately that leads to a different dialog box and function (actually I want no dialog box, but first i need to find the right command..)
Thanks anyway!
there must be options to avoid the dialog.
I guess so, but it's still not the dialog i need :-(
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2020년 11월 12일

댓글:

2025년 3월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by