Display Differences in Original Models
Highlighting in Models
When you compare Simulink® models, you can choose to display the corresponding items in the original models when you select report items. You can use this highlighting to explore the changes in the original models. When you select an item, the report highlights the corresponding item in the model.
Click a report entry to view the highlighted item (or its parent) in the model:
If the item occurs in both models, they both appear with highlighting.
When there is no match in the other model, the report highlights the first matched ancestor to show the context of the missing item.
If the comparison tool cannot highlight an item directly (e.g., configuration parameters), then it highlights the nearest ancestor of the selected node.
Try highlighting items in original models using the example Compare and Merge Simulink Models Containing Stateflow.
Control Highlighting in Models
To control highlighting in models, in the Comparison Tool, select or clear the check box Always Highlight. You can click the Highlight Now button to highlight the currently selected report node at any time. This can be useful if you turn off automatic highlighting and only want to display specific nodes.
By default, models display to the right of the comparison report, with the model corresponding to the left side of the report on top, and the right below. If you move or resize the models your position settings are respected by subsequent model highlighting operations within the same session. The tool remembers your window positions.
If you want to preserve window positions across sessions, position the window, and then enter:
slxmlcomp.storeWindowPositions
This preserves the placement of any Simulink windows, Stateflow® windows, and truth table windows.
To stop storing window positions and return to the defaults, enter:
slxmlcomp.clearWindowPositions
View Changes in Model Configuration Parameters
You can use the report to explore differences in the model Configuration Parameters. If you select a Configuration Parameter item, the report displays the appropriate root node pane, if possible, of both Configuration Parameters dialog boxes.
Parameters display the label text from the dialog controls (or the parameter name if it is command line only), and the parameter values. You can merge selected parameters using merge mode.
Related Examples
- Select Simulink Models to Compare
- Compare Simulink Models
- Merge Simulink Models from the Comparison Report
- Compare Revisions