Block Alignment Tool for Simulink

Helps to align the simulink model blocks using directed graph algorithms.
222 Downloads
Aktualisiert 7. Apr 2022
BlockAlignment - Simulink Block Alignment Tool
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/

Zitieren als

Sysenso Systems (2025). Block Alignment Tool for Simulink (https://github.com/SysensoSystems/BlockAlignment), GitHub. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2017b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Modeling finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.3.1

Updated description.

1.3

Connected with github repository.

1.2

See release notes for this release on GitHub: https://github.com/SysensoSystems/BlockAlignment/releases/tag/v1.2

1.1

Added tool screenshot

1.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.