Integration of Code from Multiple Folders
To help you to integrate generated code from multiple code generation folders, this table provides information about actions you can take.
Action | Information | Type of Integration Supported |
---|---|---|
Use consistent configuration parameters across models | If you want to integrate a group of models, aim to use a configuration set that is consistent across the models. For each model, you can
create a hash table from the shared utilities checksum file,
To determine whether parameter values are consistent across the models, for each model, you can run checks for compliance with modeling guidelines that specify parameter values. For more information, see Model Advisor Checks for High-Integrity Systems Modeling Guidelines. You can specify the
same configuration parameters for a group of models. For example, for each model,
use a configuration reference to access the same configuration set from a data
dictionary. When you use the same configuration set, the generated data types for
each model are the same and the corresponding
| Same-release, cross-release |
Reuse shared utility code | You can reuse data and functions across software components by specifying
a shared utilities folder for your models. In the Configuration Parameters dialog
box, set Shared code placement to If you want software components to share a
utilities folder, generate code from a common working folder or specify the same
code generation folder through the file generation control parameter,
Identically-named utility files
generated in different releases are functionally equivalent even if file style or
comments differ. For cross-release code integration, you can use the
| Same release, cross-release |
Avoid generated header file updates | In general, when you build a model, existing header files (and source
files) in the For more information, see:
| N/A |
Use cross-release SIL or PIL block | You can use the cross-release SIL or PIL block to integrate generated code from previous releases (R2010a and later) with generated code from the current release. For more information, see Cross-Release Code Integration. | Same release, cross-release |
Use CRL and | You can use the code replacement library (CRL) and
| Same release, cross-release |