Engee documentation

Manual Switch

Switch between two Inputs.

blockType: Manual Switch

Path in the library:

/Basic/Signal Routing/Manual Switch

Description

Block Manual Switch It is a toggle switch that switches the output between two Inputs. The input signal changes when the parameter is turned on or off Port value.

The input signal is changed by double-clicking on the block. The switch can be set to the desired position both before starting the simulation and during the operation of the model. Block Manual Switch saves its current state when the model is saved.

Ports

Input

# IN_1 — the first input signal
scalar | vector

Details

The first of two input signals. The unit transmits either the first or second Input to the output. The input signal is changed by double-clicking on the block.

Data types

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

Complex numbers support

Yes

# IN_2 — second input signal
scalar | vector

Details

The second of the two input signals. The unit transmits either the first or second Input to the output. The input signal is changed by double-clicking on the block.

Data types

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

Complex numbers support

Yes

Output

# OUT_1 — Output signal
scalar | vector

Details

The output signal transmitted from either the first or second Input.

Data types

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

Complex numbers support

Yes

Parameters

Main

# Port value — which signal will go to the output
Logical

Details
  • If this option is selected, the lower input signal will be sent to the output.

  • If this option is unchecked, the upper input signal will be sent to the output.

Default value

false (switched off)

Program usage name

PortValue

Tunable

Yes

Evaluatable

No