Simulink Reference Previous page   Next Page
Model

Include a model as a block in another model.

Library

Ports & Subsystems

Description

The Model block allows you to include a model as a block in another model. The Model block displays input ports and output ports corresponding to the model's top-level input and output ports. This allows you to connect the included model to other blocks in the containing model.

During simulation, Simulink invokes an S-function called the simulation target to compute the model's outputs. If the simulation target does not exist at the beginning of a simulation or when you update the model's block diagram, Simulink generates the target from the referenced model. If the target exists, Simulink checks whether the included model has changed since the last time the target was built. If so, Simulink regenerates the target to reflect changes in the model. Simulink uses the same simulation target for all instances of an included model whether in the same model or different model. See Referencing Models for more information.

Data Type Support

Determined by the root-level inputs and outputs of the model referenced by the Model block.

Parameters and Dialog Box

Model Name
Name of the model referenced by this block. This name must be a valid MATLAB identifier. The model must exist on the MATLAB path and the MATLAB path must contain no other model having the same name.
Parameter Argument Names
Names of parameter arguments accepted by the model referenced by this block (see Parameterizing Model References for more information).
Parameter Arguments
Values to be passed as parameter arguments to the model referenced by this block each time the model is invoked during a simulation. Enter the values in this field as a comma-separated list in the same order as the corresponding argument names appear in the Parameter Argument Names field.

Characteristics

Direct Feedthrough
Depends on model referenced by this block.
Scalar Expansion
Depends on model referenced by this block.


Previous page  MinMax Running Resettable Model Info Next page

© 1994-2005 The MathWorks, Inc.