Circuit Selector

Block-library: DUBSI

     block

The Circuit Selector block can be used to activate one circuit in a block-diagram while simultaneously deactivating another, or vice versa, depending on a threshold value.

If the input signals are called u1, u2, and u3, and the output signals are called y1 and y2, then the following equations define the switching logic:

   if u2 is greater than or equal to the threshold, then

        y1 = u1
        y2 = 0

   else

        y1 = 0
        y2 = u3

In other words: u2 is the test signal that determines whether to activate the circuit u» y1, or u» y2. The numbering of the input signals has been chosen such that it more or less resembles the input sequence for the Switch block in Simulink.

The block Output Director from the same blocklibrary provides a similar solution for 'directing' one input value to either one of two output lines.

April 15, 2003