Generate code from .rtw file

조회 수: 3 (최근 30일)
Vit Valek
Vit Valek 2019년 7월 25일
편집: Nick Sarnie 2019년 8월 15일
Hello,
I have file .rtw from model. Is possible to generate code from them or I must generate code only from model (Build Model)?
Thanks,
Vit

답변 (1개)

Abhilash Padma
Abhilash Padma 2019년 7월 29일
Hi,
Yes, it is possible to generate code from .rtw file. You can use the rtwbuild() function and pass the name of the rtw file as an argument to this function to generate code.
  댓글 수: 5
Nick Sarnie
Nick Sarnie 2019년 8월 10일
편집: Nick Sarnie 2019년 8월 15일
Hi Vit,
The RTW file is not sufficient for complete code generation. The RTW file contains information about the model's properties, settings, and modeling style, but does not contain any algorithm or block code. The TLC compiler combines information in the RTW file with the algorithm code in TLC files to produce the final code.
Thanks,
Nick
Vit Valek
Vit Valek 2019년 8월 12일
Hi Nick,
Thank you for your answer!
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