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.