PLECS 1.3 Online Help

Gate Function

Purpose

Apply a relational or logical expression to a gate signal.

Library

Signals & Systems

Description

[Picture]

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:

The Gate Function icon can be distinguished from the Compare Function by the brown instead of a green input terminal.

Parameters and Dialog Box

[Picture]

Expression
The expression applied to the input signal, in C language syntax.
Input width
The width of the input signal. The default is 2.