ISSW – Simple switch for integer signals

Block SymbolLicensing group: STANDARD
PIC

Function Description
The ISSW block is a simple switch for integer input signals i1 and i2 whose decision variable is the binary input SW. If SW is off, then the output n is equal to the i1 signal. If SW is on, then the output n is equal to the i2 signal.

Inputs

i1

First integer input of the block

long

i2

Second integer input of the block

long

SW

Signal selector

bool

off ..

The i1 signal is selected

on ...

The i2 signal is selected

Output

n

Integer output of the block

long