Fixed-Point Blockset    
Accumulator Resettable Limited

Compute a limited cumulative sum with external Boolean reset

Library

Calculus

Description

The Accumulator Resettable Limited block computes a cumulative sum, based on the values of an external Boolean reset signal.

The block can reset its state based on an external reset signal R. When the cumulative sum reaches one of the limits given by the Upper limit and Lower limit parameters, the sum saturates to that limit.

The block has two input ports, one for the input signal u, and another for the reset signal R. When the reset R is false at time n, the block adds the current value of the input signal u to the sum at time n-1. When the cumulative sum is outside the limits given by the Upper limit and Lower limit parameters, the sum saturates to one of the bounds.

When the reset R is true at time n, the block resets the sum to the value of the Initial condition for previous output parameter, and outputs the sum.

Parameters and Dialog Box

Initial condition for previous output
Set the initial condition for the previous output.
Upper limit
The upper limit for saturation of the cumulative sum.
Lower limit
The lower limit for saturation of the cumulative sum.
Output data type and scaling
Specify the output data type and scaling via the dialog box, or inherit the data type and scaling from the driving block or by backpropagation.
Round toward
Rounding mode for the fixed-point output.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate.

Characteristics

Input Ports
Any data type supported by the blockset
Output Port
Same data type as the input
Direct Feedthrough
Of the input and reset source ports
Scalar Expansion
Of inputs and gain

See Also

Accumulator


  Accumulator Resettable Add