Using Simulink | ![]() ![]() |
The Model Differencing Tool finds and displays differences between two Simulink models. This allows you to determine quickly the differences between, for example, versions of the same model.
To use the tool, open one of two models to be compared and select Model differences from the Simulink Tools menu. The Model Differencing Tool appears along with a Select Second Model dialog box.
Use the Select Second Model dialog box to select the other model to be compared. The Model Differences Tool opens the second model, if necessary, and arranges itself alongside the two models.
The Model Differences Tool contains three panes. The top left pane displays the contents of the first model as an expandable list. The top right pane displays the contents of the second model. Colors indicate differences between the two models.
Clicking on a block in either pane highlights the corresponding block icon(s) in the model view(s). The bottom pane displays parameter differences between versions of a selected block that exists in both models.
Display Options
The tool offers some display options. Select Show items with differences only from the Options menu to omit blocks that do not differ in the two models. Select Include only non-graphical differences to display only blocks that differ in parameter values or content. This option omits subsystem blocks that contain only graphical differences, such as block location or background color.
Model Differences Report
Select HTML Report from the View menu to display an HTML report summarizing the differences between the two models.
The report starts by listing all the blocks that differ between the two models. This summary is followed by difference reports for each block that has different instances in the two models.
![]() | Controlling S-Function Execution | Profiler | ![]() |