Event-Count Comparator
Detect threshold crossing of accumulated nonzero inputs
Libraries:
DSP System Toolbox /
Signal Management /
Switches and Counters
Description
The Event-Count Comparator block detects the number of nonzero inputs at the
Data port during the period that the block is enabled by a high
signal (of value 1
) at the Int port. Both inputs
must be scalars.
When the number of accumulated nonzero inputs first equals the value in the Event
threshold parameter, the block waits one additional sample interval, and
then sets the Out port to 1
. The block holds the
Out port at 1
until the signal at the
Int port transitions from a low value (0
) to
a high value (1
).
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a