- Virtual subsystems do not generate a separate function in the code; their contents are inlined directly into the parent function.
- Atomic (nonvirtual) subsystems typically generate a separate function for the subsystem. However, you can configure how this function is generated, and it can be configured to be inlined as well.
- Right-click the Subsystem block and select Block Parameters (Subsystem).
- In the dialog box, ensure "Treat as atomic unit" is checked. This makes the subsystem atomic (nonvirtual) and allows for advanced code generation options.
- Go to the Code Generation tab.
- Set the Function packaging parameter to Inline.