Fixed-Point Blockset    
Accumulator Resettable

Compute a cumulative sum with external Boolean reset

Library

Calculus

Description

The Accumulator Resettable 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. The block has two input ports, one for the input signal u, and another for the reset signal R. When the reset 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 reset 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.
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 Accumulator Resettable Limited