More searching on this, I ran into:
When I run the Matlab GRT example (ConfigurationRapidPrototypingInterface) it creates a ConfigurationRapidPrototypingInterface.h that does define the macros for the RTM functions (almost at the top, immediately after the includes).
But the .h created for my simulation does not create the rtm macros.
The simulation I use does need:
- Modeling -> Parameters -> Code Interface -> Component -> Code interface packaging: C++ class
While the Matlab GRT example uses:
- Component -> Nonreusable function
- Subcomponent -> Reusable function
(I reviewed https://www.mathworks.com/help/rtw/ref/codeinterfacepackaging.html fully, but don't know why changing to C++ would no longer do the macros? I could not find a "change log" for this page where the behavior would have changed since Matlab 2016b).
Did the C++ interface stop creating the macros at some point? Is there any way around it?
Thank you again.
Alvar