This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Control Execution of Delay Block with Enable Port

This example shows how you can enable or disable the execution of the Delay block using an enable port. In this model, a ramp input signal feeds into a Delay block. The execution of the block is controlled by an enabling signal from the Pulse Generator block.

The blue line shows that the Delay block outputs the input signal value delayed by one time step while the enabling signal has a value of one. At t=5 the enabling signal transitions to zero and the Delay block stops executing. The output is held at the last value until the block is enabled again.