Fixed-Point Blockset | ![]() ![]() |
Compute a cumulative sum with external Boolean reset
Library
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
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 Limited | ![]() |