PLECS 2.0 Online Help

Gate Function

Purpose

Apply a relational or logical expression to a gate signal.

Library

Signals & Systems

Description

pict

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.

Probe Signals

Input
The input signal.
Output
The output signal.