Is there a way to reconcile multiple rtwtypes.h files?
2 views (last 30 days)
Show older comments
Ken Seiders
on 16 Jun 2015
Commented: Ken Seiders
on 17 Jun 2015
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.
0 Comments
Accepted Answer
Andrew Schenk
on 17 Jun 2015
Edited: Andrew Schenk
on 17 Jun 2015
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.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!