| DSP Blockset | Search  Help Desk |
| Event-Count Comparator | See Also |
Detect threshold crossing of accumulated nonzero inputs.
Library
Switches and Counters, in General DSPDescription
The Event-Count Comparator block records the number of nonzero inputs to theData port during the period that the block is enabled by a high (1) signal at the interval (Int) port. When the number of accumulated nonzero inputs first equals the Event threshold setting, the block waits one additional sample interval, and then sets the output high (1). The block holds the output high until recording is restarted by a low-to-high (0-to-1) transition at the Int port.
The illustration below shows the block's operation for an Event threshold of 3.Dialog Box

See Also
Counter