Skip to content

costerwi/simulink-mergeDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Description

This is a simple tool to help visualize and merge differences between two Simulink models. See also: Comparison Tool in Simulink

UNIQUE = mergeDiff(OLDMODEL, NEWMODEL{, MERGE=false}) compares block names and dialog parameters from two similar models. The differences are reported in a format similar to the unified diff format.

If MERGE=true then OLDMODEL will be updated with parameter values and missing blocks from NEWMODEL. The merged model requires manual editing to complete the merge process. The modified blocks in the merged model are color coded upon completion. This function does not examine connecting lines so the user should review and connect these colored blocks manually to complete the merge.

Background color Meaning
White Block is unchanged
Green Block was missing from OLDMODEL and was copied from NEWMODEL
Orange Block's parameters were updated
Red Block is missing from NEWMODEL
Yellow Subsystem contains modifications

Returns UNIQUE names of blocks found only in OLDMODEL.

Example

% List differences between two Simulink models:
load_system('oldmodel');
open_system('newmodel');
mergeDiff('oldmodel', 'newmodel');

image

About

Visualize and optionally merge differences between two Simulink models

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages