DSP Blockset
  Go to block:
    Search    Help Desk 
N-Sample Enable    See Also

Output ones or zeros for a specified number of sample times.

Library

Switches and Counters, in General DSP; DSP Sources

Description

The N-Sample Enable block outputs the inactive value (zero or one, whichever is not selected in the Active parameter pop-up) during the first N sample times, where N is the Trigger count value. Beginning with output sample N+1, the block outputs the active value (one or zero, whichever is selected in the Active level parameter pop-up) until a reset event or the end of the simulation.

The Reset input check box enables the Trig input port. At any time during the count, a trigger event at the input port resets the counter to its initial state. The triggering event is specified by the Trigger type pop-up menu, and can be one of the following:

Dialog Box

Trigger count 
The number of samples for which the block outputs the active value.
Active level 
The value to output after the first N sample times, 0 or 1.
Reset input
Enables the Trig input port.
Trigger type 
The type of event that triggers a reset.
Sample time
The sample period, Ts, for the block's counter. The block switches from the active value to the inactive value at t=Ts*(N+1).

See Also

Counter
N-Sample Switch


[ Previous | Help Desk | Next ]