Comparison Tool
View differences between two architecture models
Description
The Comparison Tool in System Composer™ shows differences between two architecture models.
The tool shows differences for these types of architectural data:
Model structural differences (components, ports, and connectors)
Different types of supported components and ports
Interfaces on model data dictionaries
Owned port interfaces
Applied stereotypes and property value changes on model elements
Architecture views
Parameters
Simulink® properties
Rows in the comparison report are highlighted according to the type of difference:
Insertion
— Added elements to the right side that did not exist on the left side
Deletion
— Removed elements that did exist on the left side but not on the right side
Modification
— Changes to existing elements that exist on both the left and right sides
Open the Comparison Tool
Open the Comparison Tool from the System Composer toolstrip.
Navigate to Modeling > Compare.
In the Select Files or Folders for Comparison dialog box, select the second file against which to compare.
Set the comparison type as
System Composer Model Comparison
.Click Compare.
Open the Comparison Tool from the MATLAB® file manager by selecting one architecture model.
In the MATLAB® file manager, right-click an architecture model.
Select
Compare Against
and thenChoose
.In the Select Files or Folders for Comparison dialog box, select the second file against which to compare.
Set the comparison type as
System Composer Model Comparison
.Click Compare.
Open the Comparison Tool from the MATLAB® file manager by selecting two architecture models.
In the MATLAB® file manager, select two architecture models.
Right-click and select
Compare Selected Files/Folders
.
Examples
Parameters
Swap Sides
— Switch left and right comparison models
button
Swap sides of the two models being compared on the comparison report.
Refresh
— Pull changes from architecture models to comparison report
button
When the architecture models are out of sync, pull in the changes to the comparison
report. You must save both architecture models first before clicking
Refresh
.
Highlight Now
— Highlight currently selected report node
button
When Always Highlight
is turned off, you can click
Highlight Now
to highlight the currently selected comparison
report node in the architecture models.
Always Highlight
— Whether to always highlight differences in models
on (default) | off
By default, the two models being compared display to the right of the comparison
report, with the model corresponding to the left side of the report on top and the model
corresponding to the right side appearing below. Turn Always
Highlight
off to use the Highlight Now
button and
control highlighting in the models.
Hide Graphical Changes
— Whether to hide graphical changes from comparison models
on (default) | off
Access this check box from the Filter menu. When selected, graphical changes such as component positioning and resizing are ignored from the comparison report.
Programmatic Use
Version History
Introduced in R2022a