20.6.6.12. Switch

The Switch block outputs one of two input signals based upon the value of a control signal. The first and third input signals are data signals. The second input signal is the control signal. If the control signal meets the condition set in the Criteria for passing first input parameter, the output signal is equal to the first input signal (u[0]). Otherwise, the output signal is equal to the second input signal (u[2]).

Dialog box

../_images/image1951.png

Figure 20.123 Switch dialog box

Table 20.60 Parameters

Parameters

Description

Criteria for passing first input

The condition under which the first input signal is passed.

Threshold

Enter the threshold value.

Sample time

Enter the time interval between samples. To inherit the same sample time, set this parameter to -1.