Engee documentation

Bus Selector

Selects signals from the incoming bus.

blockType: BusSelector

Path in the library:

/Basic/Signal Routing/Bus Selector

Description

The Bus Selector block outputs the items selected from the input bus. The block can output the selected items separately or in a new bus.

For details on bus types, refer to Custom Bus Types.

Ports

Input

# IN_1 — input bus
bus

Details

Input Bus.

When working with an array of buses, use the block Selector to select the desired bus, which you then connect to the block Bus Selector.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Complex numbers support

No

Output

# OUT — selected input bus elements
scalar | vector | matrix | bus

Details

The block outputs each of the selected elements through a separate output port. The number of output ports corresponds to the number of selected signals in the parameters Vector of output names in order.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Complex numbers support

No

Parameters

Main

# Vector of output names in order — selected input bus elements
String

Details

Each signal in the list is added to the block output.

When multiple items are selected from the Elements in Bus list, the order in which they are selected determines the order in the Selected Signals list.

The number of selected signals determines the number of output ports.

To change the order of output items, select an item or multiple adjacent items in the list, then press Up or Down. Port cohesion is maintained when the order of items is changed.

To remove items from the block output, select the items in the list, then press Delete.

Default value

[signal1,signal2]

Program usage name

OutputSignals

Tunable

No

Evaluatable

Yes

Additional options

C code generation: Yes

Examples