I want to introduce modularity to my simulink model and hence want each simulink block to be translated to a cpp file using Embedded Coder.What I did was this: 1. Created a simlink model with n blocks 2. Wrapped each significant simulink block to a subsystem 3. Set the Subsystem parameters 'treat as atomic unit' and 'Function Reuse" 4. Built the model.
I was expecting n soucefiles for each of my subsystem.But I got only one relevant soucefile with the name of my simulink model. Is there something I am missing? your help will be appreciated.