|
|
| Vectorized | C | |
in the palette |
on the schematic |
The block implements a linear link algorithm with gain equal to 1 and with signal limitation that varies depending on the input signals on the second and third input ports. Operation algorithm of the block:
where
y1(t),
y2(t),
y2(t) are the signals at the output ports,
x(t) is the signal at the first input port (left),
xmin(t),
xmax(t) are the signal at the second and third input ports (top). The block is a submodel. To view the structure of the algorithm, right-click
Actions → Enter to the submodel:
Inputs
- Input — block input signal, x(t).
- Minimum is the value limiting the signal “from below”, xmin(t). If the absolute value of the input is less than the minimum signal, the block output is equal to the minimum, and the third output is set to logical one.
- The maximum is the value limiting the signal “from above”, xmax(t). If the absolute value of the input is greater than the maximum signal, the block output is equal to the maximum, and the first output is set to logical one.
Outputs
- Y1 — is equal to 1 if the input signal exceeds the maximum signal. Otherwise Y1 is equal to 0.
- Output — is equal to the input if the input signal does not exceed the maximum and is not less than the minimum. Otherwise, the output is equal to the maximum value or the minimum value, respectively.
- Y3 — is equal to 1 if the input signal is less than the minimum. Otherwise Y3 is equal to 0.