Engee documentation

Manual Switch

Switching between two inputs.

manual switch

Description

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

The input signal is changed by double clicking on the block. The switch can be set to the desired position either before running the simulation or while the model is running. The Manual Switch block retains its current state when the model is saved.

Ports

Input

Port_1 - first input signal
scalar | vector

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

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Support for complex numbers: Yes

Port_2 - second input signal
scalar | vector

The second of the two input signals. The block passes 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.

Support for complex numbers: Yes

Output

Port_1 - output signal
scalar | vector

Output signal sent from either the first or second input.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Parameters

Port value - what signal will go to the output
off (by default) | on
  • On - lower input signal will go to the output.

  • Disabled' - the output will receive the upper input signal.

Usage in program code

Block parameter

PortValue

Value

off | on

By default

off