Fixed-Point Blockset    
Unit Delay With Preview Enabled Resettable

Output the signal and the signal delayed by one sample period, if the external enable signal is on, with an external Boolean reset

Library

Delays & Holds

Description

The Unit Delay With Preview Enabled Resettable block supports calculations that have feedback and depend on the current input.

The block can reset its state based on an external reset signal R. The block has two output ports. When the external enable signal E is on and the reset R is false, the upper port outputs the signal and the lower port outputs the signal delayed by one sample period. The block has two input ports, one for the input signal u and the other for the enable signal E.

When the enable signal E is on and the reset R is true, the block resets the current state to the initial condition given by the Initial condition parameter. The block outputs that state delayed by one sample time through the lower output port, and outputs the state without a delay through the upper output port.

When the Enable signal is off, the block is disabled, and the state and output values do not change, except for resets. The enable signal is on when E is not 0, and off when E is 0.

The input u and initial condition IC must be the same data type, but can be any data type. The output is the same data type as the inputs u and IC. The reset R can be any data type.

You specify the time between samples with the Sample time parameter. A setting of -1 means the Sample time is inherited.

Parameters and Dialog Box

Initial condition
Initial condition.
Sample time
Sample time.

Characteristics

Input Port u
Any data type supported by the blockset
Input Port E
Any data type supported by the blockset
Input Port R
Any data type supported by the blockset
Output Ports
Same as the input u
Direct Feedthrough
Yes, to upper output port
No, to lower output port
Scalar Expansion
Yes

See Also

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, Unit Delay With Preview Enabled Resettable External RV, Unit Delay With Preview Resettable, Unit Delay With Preview Resettable External RV


  Unit Delay With Preview Enabled Unit Delay With Preview Enabled Resettable External RV