Simulink Reference Previous page   Next Page
Goto

Pass block input to From blocks

Library

Signal Routing

Description


The Goto block passes its input to its corresponding From blocks. The input can be a real- or complex-valued signal or vector of any data type. From and Goto blocks allow you to pass a signal from one block to another without actually connecting them.

A Goto block can pass its input signal to more than one From block, although a From block can receive a signal from only one Goto block. The input to that Goto block is passed to the From blocks associated with it as though the blocks were physically connected. Goto blocks and From blocks are matched by the use of Goto tags, defined in the Tag parameter.

The Tag visibility parameter determines whether the location of From blocks that access the signal is limited:

The rule that From-Goto block connections cannot cross nonvirtual subsystem boundaries has the following exception. A Goto block connected to a state port in one conditionally executed subsystem is visible to a From block inside another conditionally executed subsystem. For more information about conditionally executed subsystems, see Creating Conditionally Executed Subsystems in the Using Simulink documentation.

Use local tags when the Goto and From blocks using the same tag name reside in the same subsystem. You must use global or scoped tags when the Goto and From blocks using the same tag name reside in different subsystems. When you define a tag as global, all uses of that tag access the same signal. A tag defined as scoped can be used in more than one place in the model. This example shows a model that uses two scoped tags with the same name (A).

Data Type Support

The Goto block accepts real or complex signals of any data type supported by Simulink, including fixed-point data types.

For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.

Parameters and Dialog Box

Tag
The Goto block identifier. This parameter identifies the Goto block whose scope is defined in this block.
Tag visibility
The scope of the Goto block tag: local, scoped, or global. The default is local.
Corresponding From blocks
List of the From blocks connected to this Goto block. Double-clicking any entry in this list displays and highlights the corresponding From block.
Icon Display
Specifies the text to display on the block's icon. The options are the block's tag, the name of the signal that the block represents, or both the tag and the signal name.

Characteristics

Sample Time
Inherited from driving block
Dimensionalized
Yes


Previous page  Gain Goto Tag Visibility Next page

© 1994-2005 The MathWorks, Inc.