This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Inspect Model Hierarchies

To better understand a model hierarchy, you can use Simulink® tools, functions, parameters, or preferences to:

  • Preview model contents

  • Visualize the model hierarchy

  • List referenced models and Model blocks

  • Display model version numbers

Content Preview

Content preview displays a representation of the contents of a referenced model on the Model block. This preview helps you to understand at a glance the kind of processing performed by the referenced model without opening the referenced model. See Preview Content of Model Components.

Model Dependency Viewer

The Model Dependency Viewer shows the structure of the model hierarchy and lets you open constituent models. The Model Instances view displays Model blocks differently to indicate Normal, Accelerator, SIL, and PIL modes. See Model Dependency Viewer.

The depview function opens the Model Dependency Viewer.

List of Model References

The find_mdlrefs function lists all models that are directly or indirectly referenced by a given model. This function also provides the paths to the related Model blocks.

Find Referenced Models in Model Hierarchy

Find referenced models and Model blocks for all models referenced by the specified model.

load_system('sldemo_mdlref_basic');
[myModels,myModelBlks] = find_mdlrefs('sldemo_mdlref_basic')
myModels = 2x1 cell array
    {'sldemo_mdlref_counter'}
    {'sldemo_mdlref_basic'  }

myModelBlks = 3x1 cell array
    {'sldemo_mdlref_basic/CounterA'}
    {'sldemo_mdlref_basic/CounterB'}
    {'sldemo_mdlref_basic/CounterC'}

Model Version Numbers

To display the version numbers of the referenced models, in the parent model, choose Display > Blocks > Block Version for Referenced Models. The version of each Model block instance appears on each Model block.

For information on model versions, see Manage Model Versions and Specify Model Properties.

See Also

Functions

Related Topics