Hello, I have a model containing reference models and S-function. I don't want to generate code for the S-function in my main model but want to generate interface for it. Is there a way to suppress the code gen of a particular block inside a model.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 7월 13일

0 개 추천

You could simply write a TLC script for the S-function (see Inlining S-Functions) and do nothing inside the Outputs function.

댓글 수: 1

Gyanaranjan Pattanaik
Gyanaranjan Pattanaik 2011년 7월 17일
Thanks, I was able to do it. Is it also possible to suppress the code gen from a subsystem too.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by