| Simulink® Release Notes |
 |
Referenced Model Limitations
A model can be referenced by other models if it meets the following conditions:
- The model must use a fixed-step solver (see Choosing a Fixed-Step Solver).
- The model must specify that it can be referenced (see Total number of instances allowed per top model).
- You cannot initialize the states of a referenced model.
- This release places some restrictions on the sample times that a referenced model can inherit from the model that references it. See Model Block Sample Times in the Simulink documentation for more information.
- This release places some limitations on I/O connections in referenced models.
- A referenced model must use
Simulink.Bus objects to specify any nonvirtual buses that it inputs and outputs (see Bus I/O Limitations).
- A referenced model can input or output only those user-defined data types that are fixed-point or defined by
Simulink.DataType or Simulink.Bus objects.
- Function-Call, Data Store Memory, Goto/From blocks cannot cross model reference boundaries.
- A referenced model cannot contain noninlined S-functions.
- This release ignores custom code settings in the Configuration Parameter dialog box and custom code blocks when generating the simulation target for a referenced model.
- This release does not include Stateflow target custom code
in simulation targets generated for referenced models.
- This release does not support referenced models that have asynchronous rates.
- A referenced model can input or output indices. However, Simulink may not be able to detect a 0-based index that is connected to a model port expecting or outputting a 1-based index, or vice versa. See Index I/O Limitations in the Simulink documentation for more information.
- Model blocks referencing models that contain assignment blocks that are not in an iterator subsystem, cannot be placed in an iterator subsystems.
The Real-Time Workshop's S-function target and grt_malloc-based target do not support model reference.
- When generating a simulation target for a referenced model that contains an S-function with a TLC file, Simulink inlines the S-function only if the S-function sets the
SS_OPTION_USE_TLC_WITH_ACCELERATOR flag.
- This release places some restrictions on the use of custom storage classes in referenced models. See The Real-Time Workshop documentation for details.
| Referencing Model Limitations | | Major Bug Fixes |  |
© 1994-2005 The MathWorks, Inc.