Output signal and signal delayed by one sample period, if external enable signal is on
Additional Math & Discrete / Additional Discrete
The Unit Delay With Preview Enabled block supports calculations that have feedback and depend on the current input.
The block has two input ports: one for the input signal
one for the external enable signal
When the enable signal
E is on, the first
port outputs the signal and the second port outputs the signal delayed
by one sample period. When the enable signal
off, the block is disabled, and the state and output values do not
change, except during resets.
The enable signal is on when
E is not 0,
and off when
E is 0. This enable action is vectorized
and supports scalar expansion.
Having two outputs is useful for implementing recursive calculations where the result includes the most recent inputs. The second output can feed back into calculations of the block's inputs without causing an algebraic loop. Meanwhile, the first output shows the most up-to-date calculations.
You specify the block output for the first sampling period with the value of the Initial condition parameter.
You specify the time between samples with the Sample
time parameter. A setting of
that the block inherits the Sample time.
The Unit Delay With Preview Enabled block accepts signals of the following data types:
The outputs have the same data type as the input
For enumerated signals, the Initial condition must
be of the same enumerated type as the input
For more information, see Data Types Supported by Simulink in the Simulink® documentation.
Specify the initial output of the simulation.
Specify the time interval between samples. To inherit the sample
time, set this parameter to
Specify Sample Time in
the online documentation for more information.
Yes, to first output port
No, to second output port
Specified in the Sample time parameter
Unit Delay, Unit Delay Enabled, Unit Delay Enabled External IC, Unit Delay Enabled Resettable, Unit Delay Enabled Resettable External IC, Unit Delay External IC, Unit Delay Resettable, Unit Delay Resettable External IC, Unit Delay With Preview Enabled Resettable, Unit Delay With Preview Enabled Resettable External RV, Unit Delay With Preview Resettable, Unit Delay With Preview Resettable External RV