Compare Model Differences Using System Composer Comparison Tool
This example shows how to use the Comparison Tool to compare two System Composer™ architecture models with differences in architectural data. The models represent a mobile robot hardware architecture and an edited version of the same model.
To open the Comparison Tool, enter this command.
Compare Structural Differences
The first section of the System Composer comparison report is called
Architecture. The differences in this section include changes to components, ports, and connectors. This section also includes changes to component types, port types, and any owned interfaces added to ports. The comparison report displays:
A new physical port named
Temperature Controladded to the
Power Supply Boardcomponent and connected to the
A new port named
Wheel Studconnected from the
Wheelscomponent to the
Mobile Robot Casecomponent.
A new owned interface with elements
Messageowned by the
A port on the
Target Machinecomponent renamed from
Controllercomponent that is converted to a Stateflow® chart component.
To learn more about specific changes, you can select the row in the comparison report and view additional information in the bottom pane. As you click on each row of the comparison report, the corresponding open models on the right side are highlighted.
Compare Interface Dictionary Differences
The second section of the System Composer comparison report is called
Interfaces. The differences in this section include changes to interfaces on the model data dictionary. The comparison report displays:
Three new value type interfaces called
Colorsdata interface with three data elements:
A new physical interface named
ThermalMeasurewith the physical element
When you click on the data element:
B, you can see that the element is typed by its value type. You can also inspect the physical domain that types the physical element
Compare Views Differences
The third section of the System Composer comparison report is called
Architecture Views. The differences in this section added or deleted architecture views and shows whether the view mode has changed between
Component Hierarchy, or
Architecture Hierarchy. The comparison report displays:
BatteryPackview and the components that are displayed within it:
Power Supply Board,
Battery Pack, and
Changes to the existing views
Mobile Robotdue to renaming the
When you click on each of the view names, the bottom pane will indicate if there are further modifications to the views.