Generate and reuse code for subsystems included in a library that is configured for reuse
A library subsystem is a subsystem included in a library that you can configure for function reuse. To reuse common functionality, you can include multiple instances of a subsystem within a single model, across multiple referenced and top models.
Library-based code generation provides a way of generating code for a set of reusable components that models can share. For each top-level reusable library subsystem, you specify a set of function interfaces that lock down the subsystem interface.
- Generate Reusable Code from Library Subsystems Shared Across Models
Create reusable library subsystems to generate code for subsystems that models share.
- Library-Based Code Generation for Reusable Library Subsystems
Specify reusable library subsystem interfaces and generate code.