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
Figure 1 Switch dialog box
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. |