필터 지우기
필터 지우기

Is there a way to reconcile multiple rtwtypes.h files?

조회 수: 5 (최근 30일)
Ken Seiders
Ken Seiders 2015년 6월 16일
댓글: Ken Seiders 2015년 6월 17일
My project has multiple independent models that are brought together into a larger application. Each model is used to generate its own code module. With that, each model generates its own rtwtypes.h file. Is there a "master" sort of rtwtypes.h that can include everything possibly generated in this file? I can't have multiple instances of this same file due to conflicting redefinition when integrating and compiling the larger app.

채택된 답변

Andrew Schenk
Andrew Schenk 2015년 6월 17일
편집: Andrew Schenk 2015년 6월 17일
You can view the M file that is used to create the rtwtypes.h file by executing the following command
>> edit([matlabroot '/toolbox/rtw/rtw/genRTWTYPESDOTH.m'])
You can see what the necessary arguments to the function are by setting a breakpoint in the M file and then generating code.
With this information, you should be able to create inputs to manually call genRTWTYPESDOTH once such that it generates one header file with all of the defined types included for your multiple models.
Alternatively, since the rtwtypes.h file is not too large and should not change, you can combine the multiple rtwtypes.h file once by hand and then always use that custom file in your larger project.
  댓글 수: 1
Ken Seiders
Ken Seiders 2015년 6월 17일
Seeing into that creation file is quite informative. I'll have to delve into it further. Knowing what it's doing will better guide me to making a custom master file.
Thanks!

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

추가 답변 (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