필터 지우기
필터 지우기

Are there any advantage of using TLC over hook make_rtw_hook?

조회 수: 4 (최근 30일)
svanimisetti
svanimisetti 2021년 10월 1일
답변: Swatantra Mahato 2021년 10월 13일
When create custom code generation target files and script, the author has the option to use pure TLC scripting language or <target>_make_rtw_hook.m script. As I understand one can do almost everything in make_rtw_hook.m script using native matlab scripting language as when using TLC scripting langauge. Also, you can probe the Simulink model using matlab script and get the same information as you would from TLC scripts (typically available from the .rtw files). So, for modern targets - is there a need to rely on TLC scripting language at all? If yes, under what circumstances does TCL shine over matlab scripting.

채택된 답변

Swatantra Mahato
Swatantra Mahato 2021년 10월 13일
Hi,
You can refer to the following documentation link for more information on STF_make_rtw_hook functions
In particular, from my understanding of the overall flow, the hook functions are a utility which can be used to customize the build process at certain phases of the build (for example interfacing with external tools), while the TLC scripts are directly involved in the actual code generation from the SImulink model.
Hope this helps

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by