Quantcast

Documentation Center

  • Trial Software
  • Product Updates

From

Accept input from Goto block

Library

Signal Routing

Description

The From block accepts a signal from a corresponding Goto block, then passes it as output. The data type of the output is the same as that of the input from the Goto block. From and Goto blocks allow you to pass a signal from one block to another without actually connecting them. To associate a Goto block with a From block, enter the Goto block's tag in the Goto Tag parameter.

A From block can receive its signal from only one Goto block, although a Goto block can pass its signal to more than one From block.

This figure shows that using a Goto block and a From block is equivalent to connecting the blocks to which those blocks are connected. In the model at the left, Block1 passes a signal to Block2. That model is equivalent to the model at the right, which connects Block1 to the Goto block, passes that signal to the From block, then on to Block2.

The visibility of a Goto block tag determines the From blocks that can receive its signal. For more information, see Goto and Goto Tag Visibility. The block indicates the visibility of the Goto block tag:

  • A local tag name is enclosed in brackets ([]).

  • A scoped tag name is enclosed in braces ({}).

  • A global tag name appears without additional characters.

The From block supports signal label propagation.

Data Type Support

The From block outputs real or complex signals of any data type that Simulink® supports, including fixed-point and enumerated data types.

For more information, see Data Types Supported by Simulink in the Simulink documentation.

Parameters and Dialog Box

Goto Tag

The tag of the Goto block that forwards its signal to this From block. To change the tag, select a new tag from this control's drop-down list. The drop-down list displays the Goto tags that the From block can currently see. An item labeled <More Tags...> appears at the end of the list the first time you display the list in a Simulink session. Selecting this item causes the block to update the tags list to include the tags of Goto blocks residing in library subsystems referenced by the model containing this From block. Simulink software displays a progress bar while building the list of library tags. Simulink software saves the updated tags list for the duration of the Simulink session or until the next time you select the adjacent Update Tags button. You need to update the tags list again in the current session only if the libraries referenced by the model have changed since the last time you updated the list.

Update Tags

Updates the list of tags visible to this From block, including tags residing in libraries referenced by the model containing this From block.

Goto Source

Path of the Goto block connected to this From block. Clicking the path displays and highlights the Goto block.

Icon Display

Specifies the text to display on the From 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.

Examples

The following models show how to use the From block:

  • sldemo_auto_climatecontrol

  • sldemo_hardstop

Characteristics

Sample Time

Inherited from the block driving the Goto block

Dimensionalized

Yes

Multidimensionalized

Yes

Virtual

Yes

For more information, see Virtual Blocks in the Simulink documentation.

Zero-Crossing Detection

No

See Also

Goto

Was this topic helpful?