Data type definition for C-code generator in Simulink

조회 수: 7 (최근 30일)
Joaquín Klee Barillas
Joaquín Klee Barillas 2012년 11월 30일
Hi,
is there a posibility to generate a C-code without any "double type" definitions. In my Simulink model I have already changed all blocks to "single", but in the generated "rtwtypes.h" I still find the definitions "double real64_T", "double real_T" and "double time_T". Instead of "double types" I would like to use "float types".
Thank you!
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2012년 11월 30일
Do you see double types being used anywhere in the model.c or model.h file? rtwtypes.h is for most part a pre-defined file that includes definitions to all built-in types, some of which may not be used in the model files.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by