Engee documentation

Goto

Transfers the block input to the block From.

goto

Description

The Goto block passes its input signal to the corresponding From blocks. The input can be a real or complex signal, or a vector of any data type. The From and Goto blocks allow to transfer 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 only receive a signal from one Goto block. The input signal of that Goto block is transmitted to the From blocks associated with it as if the blocks were physically connected.

Goto blocks and From blocks are matched using tags.

The tag visibility parameter defines where From blocks can access the signal.

Ports

Input

Port_1 - input signal
scalar | vector | matrix | multidimensional array

Input signal to be passed to the corresponding block From as a scalar, vector, matrix or multidimensional array.

  • Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed, bus.

Parameters

Goto Tag - block identifier
A (by default) | …​.

Identifier of Goto block. This parameter identifies the Goto block whose scope is defined in the Goto Tag Visibility block.

Usage in program code

Block parameter

GotoTag

Values

A | …​

* By default*

A.

Tag visibility - the scope of the *Goto block tag.
local (by default) | global

The scope of the Goto block tag as local, scoped or global. When you set this parameter to scoped, you must use the Goto Tag Visibility block to define the tag’s scope.

  • local(By default) - From and Goto blocks that use the same tag must be in the same subsystem. The name of the local tag is enclosed in square brackets ([]).

  • global - blocks From and Goto, using the same tag, can be located anywhere in the model, except for places that cover non-virtual boundaries of the subsystem.

The rule that connections of blocks From - Goto cannot cross non-virtual subsystem boundaries has the following exception. A Goto block connected to a state port in one conditionally executable subsystem is visible to a From block inside another conditionally executable subsystem.

Use local tags when Goto and From blocks using the same tag name are in the same subsystem. You must use global or scoped tags when Goto and From blocks using the same tag name are 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.

Usage in program code

Block parameter

TagVisibility

Value

local | scoped | global

By default

local