Code covered by the BSD License  

Highlights from
AutoName

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 21.5 KB File ID: #31588

AutoName

by

 

26 May 2011 (Updated )

In Simulink, automatically names signals and blocks in certain use cases.

| Watch this File

File Information
Description

Very often in Simulink, it is desireable to have naming consistency between signals and certain blocks like inports, outports, tags, scopes, etc. These functions are examples of scripts that automatically apply such names according to certain stylistic rules explained in the sample model. This is partuclarly useful when used in a model's PreSaveFcn callback, as a way to reduce the manual effort of consistent naming while building a model.

Open the included model AutoNameTest.mdl and follow the instructions therein to see an example of how this works.

Required Products Simulink
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
04 Feb 2013

Updated to be called from a custom menu item rather than in a callback function.

Contact us