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