Using Simulink Previous page   Next Page

Model Hierarchy Pane

The Model Hierarchy pane displays a tree-structured view of the Simulink model hierarchy.

Simulink Root

The first node in the view represents the Simulink root. Expanding the root node displays nodes representing the MATLAB workspace (the Simulink base workspace) and each model and library loaded in the current session. Base Workspace

This node represents the MATLAB workspace. The MATLAB workspace is the base workspace for Simulink models. Variables defined in this workspace are visible to all open Simulink models, i.e., to all models whose nodes appear beneath the Base Workspace node in the Model Hierarchy pane.

Configuration Preferences

If you check the Show Configuration Preferences option on the Model Explorer's View menu, the expanded Simulink Root node also displays a Configuration Preferences node. Selecting this node displays the preferred model configuration (see Configuration Sets) for new models in the adjacent panes. You can change the preferred configuration by editing the displayed settings and using the Model Configuration Preferences dialog box to save the settings (see The Model Configuration Preferences Dialog Box).

Model Nodes

Expanding a model node displays nodes representing the model's configuration sets (see Configuration Sets), top-level subsystems, model references, and Stateflow charts. Expanding a node representing a subsystem displays its subsystems, if any. Expanding a node representing a Stateflow chart displays the chart's top-level states. Expanding a node representing a state shows its substates.

Displaying Node Contents

To display the contents of an object displayed in the Model Hierarchy pane (e.g., a model or configuration set) in the adjacent Contents pane, select the object. To open a graphical object (e.g., a model, subsystem, or chart) in an editor window, right-click the object. A context menu appears. Select Open from the context menu. To open an object's properties dialog, select Properties from the object's context menu or from the Edit menu. See Configuration Sets for information on using the Model Hierarchy pane to delete, move, and copy configuration sets from one model to another.

Expanding Model References

To expand a node representing a model reference (see Referencing Models), you must first open the referenced model. To do this, right-click on the node to display its context menu, then select Open Model from the menu. Simulink opens the model to which the reference refers, displays a node for it in the Model Hierarchy pane, and make all references to the model expandable. You cannot edit the contents of a reference node, however. To edit the referenced model, you must expand its node.


Previous page  Setting the Model Explorer's Font Size Contents Pane Next page

© 1994-2005 The MathWorks, Inc.