When I try to generate code from my model using the Real-Time Workshop Embedded Coder I noticed that some of the block I/O signals are created as globals and defined in the BlockIO structure. This happens even if my signal storage is set to 'Auto' and I set the 'Menu –> Simulation –> Simulation Parameters… –> Advanced –> Signal Storage Reuse' option to 'ON'.
Is it possible to force the code generation to create the I/O signals as locals and not defined in the BlockIO structure?
Best Answer