MATLAB: Is it possible to inline Model Reference blocks in the generated code in Real-Time Workshop 7.4 (R2009b)

simulink coder

I would like to inline the code generated from a Model Reference block in the code generated for my main model. I am also looking to use this feature together with Model Reference Variants.

Best Answer

The ability to inline code generated for Model Reference blocks is currently not available in Real-Time Workshop 7.4 (R2009b).
As a workaround, use atomic/ configurable subsystems instead; although these blocks do not support variants.