File Exchange

image thumbnail

Simulink Block Alignment Tool

version 1.1 (643 KB) by Sysenso Systems
Helps to align the simulink model blocks using directed graph algorithms.

5 Downloads

Updated 07 Oct 2018

View License

Helps to align the simulink model blocks using directed graph algorithms.

Syntax:
>> autoBlockAlignment(modelLayer,alignDepth,approach);
>> autoBlockAlignment(modelLayer,alignDepth,approach,annotationMoveLocation,annotationAlignDiretion);

modelLayer : Name of the simulink model/subsystem which blocks to be aligned

alignDepth : Depth to which simulink model layer to be aligned
* 'current' - To align the blocks in the current layer only.
* 'all' - To align all layers below of the given system.

Approach : Select a directed graph aligning approach. All three
approaches are equally good. graphviz and mwdot are better than diagraph
as we can consider port alignments as well.
* 'graphviz' - To use the graphviz software(https://www.graphviz.org/)
installed in the machine.
* 'mwdot' - mwdot.exe is available as part of MATLAB installation.
* 'digraph' - digraph is a MATLAB function introduced from R2015b.

Optional Arguments: To handle annotation placements.
annotationMoveLocation : Location in which annotatios of the given simulink model to be moved.
'left','right','top','bottom' are the possible options.
Default Value: 'top'.

annotationAlignDiretion : Direction in which annotatios of the given simulink model to be moved.
'column','row' are the possible options
Default Value: 'column'.

Sample:
>> autoBlockAlignment('sldemo_autotrans/Vehicle','current','graphviz')
>> autoBlockAlignment('sldemo_autotrans','all','digraph')
>> autoBlockAlignment('sldemo_autotrans/Vehicle','current','mwdot','left','row')

Developed by: Sysenso Systems, https://sysenso.com/
Contact: contactus@sysenso.com

Version:
1.0 - Initial Version.

Cite As

Sysenso Systems (2020). Simulink Block Alignment Tool (https://www.mathworks.com/matlabcentral/fileexchange/69029-simulink-block-alignment-tool), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

ke li

good

Gaba

Updates

1.1

Added tool screenshot

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux