SWR – Selector with ramp

Block SymbolLicensing group: STANDARD
PIC

Function Description
The SWR block selects one of two input signals u1 and u2 with respect to the binary input SW. The selected input is copied to the output y. If SW = off (SW = on), then the selected signal is u1 (u2). The output signal is not set immediately to the value of the selected input signal but tracks the selected input with given rate constraint (i.e. it follows a ramp). This rate constraint is configured independently for each input u1, u2 and is defined by time constants t1 and t2. As soon as the output reaches the level of the selected input signal, the rate limiter is disabled and remains inactive until the next signal switching.

Inputs

u1

First analog input of the block

Double (F64)

u2

Second analog input of the block

Double (F64)

SW

Signal selector

Bool

off ..

The u1 signal is selected

on ...

The u2 signal is selected

Parameters

t1

Rate limiter time constant for switching from u2 to u1  1.0

Double (F64)

t2

Rate limiter time constant for switching from u1 to u2  1.0

Double (F64)

y0

Initial output value to start the tracking from (before the first switching of signals occurs)

Double (F64)

Output

y

Analog output of the block

Double (F64)

2023 © REX Controls s.r.o., www.rexygen.com