| DSP Blockset | 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 SourcesDescription
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 theTrig 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



N sample times, 0 or 1.Trig input port.
=Ts*(N+1).See Also
Counter