DSP Blockset
  Go to block:
    Search    Help Desk 
Event-Count Comparator    See Also

Detect threshold crossing of accumulated nonzero inputs.

Library

Switches and Counters, in General DSP

Description

The Event-Count Comparator block records the number of nonzero inputs to the Data 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

Event threshold
The value against which to compare the number of nonzero inputs.

See Also

Counter
Edge Detector


[ Previous | Help Desk | Next ]