Using Simulink | ![]() ![]() |
The Graphical Merge Tool Window
The Graphical Merge Tool window contains a menu, a toolbar, and panes that display the differences between the two models being compared. The menu provides commands for navigating and merging differences between the two models and for selecting various display options. The toolbar contains buttons that allow you to select many of the navigation, merge, and display options with a single mouse click. To display a tooltip specifying the function of a button, move the mouse cursor over the button and leave it there briefly.
The tool window contains three panes that display differences between the two models. The top left pane displays the contents (blocks, states, transitions, etc.) of the first model in an expandable tree graph. Simulink color codes the items in the tree to highlight differences between the first and second model (see How Simulink Highlights Model Differences).
The top right pane displays a similarly color-coded tree highlighting differences between the second and the first model. Clicking an item (block, state, transition) in either pane highlights the corresponding block icons in the model views.
The items in the two content panes are aligned so as to accentuate differences between the two models. An item that appears in both models appears at the same relative position in the content pane for each model. If an item appears in only one of the two models, the corresponding position in the other model's content pane is empty. This visual alignment of the content panels makes it easy to spot differences between the two models.
The bottom pane displays differences between parameters of the selected block if the block exists in both models. If you are not interested in parameter differences and need more space for viewing graphical differences, you can eliminate this pane by clearing Show parameter differences on the Graphical Merge Tool's View menu.
You can adjust the relative sizes of the panes by dragging the dividers between them.
Model History List
At the top of each content pane is a drop-down list of the four models that have most recently appeared in the pane. To compare any model on the list to the model in the other pane, select the model and press Return.
How Simulink Highlights Model Differences
The Graphical Merge Tool uses the following color code to highlight differences between two models.
Model Differences Flagged by the Graphical Merge Tool
The Graphical Merge Tool flags the following types of differences between models:
The Graphical Merge Tool's Options menu allows you to control the level of detail displayed by the differences panes. For example, you can show all items in the models being compared or only items that have nongraphical differences. The display options include
![]() | Graphical Merge Tool | Navigating Model Differences | ![]() |