Replace code for subsystem

조회 수: 1 (최근 30일)
Vit Valek
Vit Valek 2019년 7월 31일
댓글: Vit Valek 2019년 8월 12일
Hello,
Is possible to write Code replacement library (CRL) for custom subsystem? I have found how to write CRL for functions, operations etc., but not for subsystem. I don't want write TLC file, just use something like Code replacement library.
Thanks,
Vit

답변 (1개)

Abhisek Pradhan
Abhisek Pradhan 2019년 8월 9일
A custom subsystem can be made into an atomic subsystem. Check Treat as atomic unit in Block Parameters of the atomic unit for enabling it for code generation. Go to Code Generation in Block parameters and set Function packaging, Function name options and File name options as per requirement. This will ensure custom subsystem appear in code generation report. Check if this helps.
  댓글 수: 1
Vit Valek
Vit Valek 2019년 8월 12일
Hi Abhisek,
Your answer didn't help me but thanks for your response. I know there is options Treat as atomic unit and so on. But I need replace this "atomic unit" by custom code (or function call).
Vit

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

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by