Gate Function
PLECS 1.5 Online Help Gate Function
Purpose
Apply a relational or logical expression to a gate signal.
Library
Signals & Systems
Description
The Gate Function block applies a relational or logical expression specified in C
language syntax to its input. The input may be a scalar or vectorized gate signal, the
output is always a scalar gate signal. The expression may consist of one or more of
the following components:
u -- the input of the block. If the input is vectorized, u(i) or u[i]
represents the ith element of the vector. To access the first element, enter
u(1), u[1], or u alone.
Brackets
Numeric constants
Relational operators (!= == > < >=
Expression The expression applied to the input signal, in C language syntax.
Input width The width of the input signal. The default is 2.
Probe Signals
Input The input signal.
Output The output signal.