필터 지우기
필터 지우기

If I don't want simulink to generate the file "rtwtypes.h", how can I do?

조회 수: 31 (최근 30일)
I want use Simulink to generate my control function,but It always to generate at least file: "model.c","model.h" and "rtwtypes.h";
and the"rtwtypes.h" file looks like that , If I Only want generate two file " model.c" and "model.h ", How can I do? thanks.
58 typedef int int8_T;
59 typedef unsigned int uint8_T;
60 typedef int int16_T;
61 typedef unsigned int uint16_T;
62 typedef long int32_T;
63 typedef unsigned long uint32_T;
64 typedef float real32_T;
65 typedef double real64_T;
  댓글 수: 1
Tertugrul Tertugrul
Tertugrul Tertugrul 2021년 3월 1일
58 typedef int int8_T ;
59 typedef unsigned int uint8_T ;
60 typedef int16_T ;
61 typedef unsigned int uint16_T ;
62 typedef long int32_T ;
63 typedef unsigned long uint32_T ;
64 typedef float real32_T ;
65 typedef çift real64_T ;

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

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 5월 18일
I don't think you can avoid rtwtypes.h from getting generated because it contains typedefs for platform-independent types. You might be able to do some post-processing on the generated code to replace all platform-independent types like int8_T with the corresponding built-in types for your platform, and discard rtwtypes.h altogether.
  댓글 수: 3
Bo Wang
Bo Wang 2016년 1월 26일
Hi Kaustubha,
What's the process of generating rtwtypes.h? Can we modify the process?
I've found that if I choose grt.tlc to generate code, the resulting rtwtypes.h actually includes many other system header files, which means when I deliver the generated code to other people, I have to copy these system header files too. If I choose ert_shrlib.tlc, the resulting rtwtypes.h is actually a complete header file (no hierarchy to other system header files) that I think it integrates all related contents of the system header files together.
dharani k
dharani k 2020년 2월 5일
Hi Kausthubha,
Instead of rtwtypes.h file can i #include my user defined file in which i gave typedef for all datatypes. I want my user defined file to be #included in my model.h file so what settings should i do for that.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by