Main Content

Signal Hierarchy Viewer

View signal hierarchy and trace signal to source or destination

Description

The Signal Hierarchy Viewer displays information about a signal interactively. For a bus, the Signal Hierarchy Viewer displays the bus hierarchy. Use the Signal Hierarchy Viewer to trace the selected element in the Signal Hierarchy Viewer to its source or destination in the block diagram.

Each Signal Hierarchy Viewer is associated with a specific model. If you edit a model while the associated Signal Hierarchy Viewer is open, the Signal Hierarchy Viewer reflects those updates.

The Signal Hierarchy Viewer displays the signal that is currently selected. If you select a different signal line while the Signal Hierarchy Viewer is open, the Signal Hierarchy Viewer updates to the corresponding selection. If you do not select a signal, the Signal Hierarchy Viewer is blank.

To produce accurate results in the Signal Hierarchy Viewer at edit time, your model must compile successfully.

The Signal Hierarchy Viewer shows the hierarchy for a bus with two nested buses that contain two and three elements respectively.

Open the Signal Hierarchy Viewer

  • Simulink® Toolstrip: Select a signal, message, or bus. Then, on the Signal tab, click Signal Hierarchy.

  • Simulink Editor: Right-click a line. Then, select Signal Hierarchy.

Examples

expand all

Open and compile the example model named busdemo. To compile the model, on the Modeling tab of the Simulink Toolstrip, click Update Model or Run. Compiling the model updates the line styles, which you can use to visually identify buses.

The model creates a bus hierarchy that contains signals from source blocks.

Click the bus named main_bus. In the toolstrip, on the Signals tab, click Signal Hierarchy.

The Signal Hierarchy Viewer displays the hierarchy of elements in the bus named main_bus. Move the Signal Hierarchy Viewer next to the model window.

Select another line. For example, select the bus named bus2.

The Signal Hierarchy Viewer updates to display the hierarchy of elements in the bus named bus2.

Open and compile the example model named busdemo. To compile the model, on the Modeling tab of the Simulink Toolstrip, click Update Model or Run. Compiling the model updates the line styles, which you can use to visually identify buses.

The model creates a bus hierarchy that contains signals from source blocks.

Click the bus named main_bus. In the toolstrip, on the Signals tab, click Signal Hierarchy.

The Signal Hierarchy Viewer displays the hierarchy of elements in the bus named main_bus. Move the Signal Hierarchy Viewer next to the model window.

In the Signal Hierarchy Viewer, select the element named Chirp. Then, click Source.

The Simulink Editor highlights the signal from the bus named main_bus to the source block.

Open and compile the example model named busdemo. To compile the model, on the Modeling tab of the Simulink Toolstrip, click Update Model or Run. Compiling the model updates the line styles, which you can use to visually identify buses.

The model creates a bus hierarchy that contains signals from source blocks.

Click the bus named main_bus. In the toolstrip, on the Signals tab, click Signal Hierarchy.

The Signal Hierarchy Viewer displays the hierarchy of elements in the bus named main_bus. Move the Signal Hierarchy Viewer next to the model window.

In the Signal Hierarchy Viewer, select the element named Pulse. Then, click Destination.

The Simulink Editor highlights the signal from the bus named main_bus to the destination block.

Parameters

expand all

To filter the displayed elements, enter a search term. The filter does a partial-string search. Do not enclose the search term in quotation marks.

To access the filtering options, click the Show filtering options button to the right of the Filter by name box.

Select this parameter to filter the displayed input elements with either regular expressions or partial search strings. By default, you can filter the displayed input elements with only partial search strings.

Regular expressions let you filter based on whether the input elements match a pattern. For example, enter t$ in the Filter by name box to display all elements whose names end with a lowercase t (and their immediate parents). For more informations, see Regular Expressions.

Dependencies

To access this parameter, click the Show filtering options button on the right side of the Filter by name box.

Select this parameter to display filtered results as a flat list that uses dot notation to reflect the bus hierarchy. By default, the filtered results appear in a hierarchical tree.

When you display filtered results as a flat list, each results occupies one line.

The elements that match the filter use dot notation to indicate their hierarchy

Dependencies

To access this parameter, click the Show filtering options button on the right side of the Filter by name box.

Version History

Introduced in R2012a