5.0

5.0 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.84 KB File ID: #25736
image thumbnail

Create From Blocks

by Giacomo Faggiani

 

04 Nov 2009

Create 'From' blocks with same appearance and properties of 'Goto' blocks selected in the model

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Select your Goto Simulink block, right click and select "create From blocks".
 From block will be created with same color, orientation, dimensions, font and name of corresponding Goto block.
If you have created this block by copy&paste it's probable that block name doesn't correspond to its tag, so block name will be changed according to the tag.
If one or more corresponding From blocks already exist their appearance will be updated, but no other blocks will be created.

Acknowledgements
This submission has inspired the following:
Add Simulink Blocks from a given Model File with context menu
Required Products Simulink
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
05 Jan 2011 Will Campbell

Great stuff. I'll be making regular use of this functionality! A couple suggestions for the future... I often want multiple From blocks derived from a single Goto. You might want to modify the script to permit creation of multiple Gotos (incrementing the name as you do so). You also might want to have the size of an existing From block be increased/shrunk to match the Goto block (the same way you change the font, color, etc).

07 Jan 2011 Bryan

Very useful. Makes From/Goto blocks much easier to use. I also learned that you can customize the context menu. I did not not know that.

11 Jan 2011 Lukas Lansky

Works great.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Giacomo Faggiani 04 Nov 2009 09:21:05
utility Giacomo Faggiani 04 Nov 2009 09:21:05
tool Giacomo Faggiani 04 Nov 2009 09:21:05
goto Giacomo Faggiani 04 Nov 2009 09:21:05
from Giacomo Faggiani 04 Nov 2009 09:21:05
sl_customization Giacomo Faggiani 05 Nov 2009 07:38:00
potw Will Campbell 12 Jan 2011 14:10:01
pick of the week Jiro Doke 11 Feb 2011 20:09:58

Contact us at files@mathworks.com