# Accumulate

Keeps the running total of the specified value over an infinite interval. The function returns the current accumulated total.

## Accumulate Inputs

Syntax: Accumulate(Event,Value,Reset,Preset)

Parameter | Description
--- | ---
Event | An external event that triggers the update of the accumulator with the specified Value parameter. This parameter must be a reference to one of the following: The Image data structure in cell A0, containing the AcquireImage function. A cell containing an Event function. A cell containing a Button function. Note: The Accumulate function buffers the state of a referenced value before that value is updated by any other function that depends on the specified Event.
Value | A reference to the cell containing the source of the data stream to be accumulated between -16777216 to 16777216. The default value is 1.000. Note: If you do not specify a cell reference, the function accumulates the specified Value parameter at each Event.
Reset | Forces the accumulator to reset to the value of the Preset parameter.
0 = OFF (default) | The accumulator continues to sum the specified value indefinitely.
1 = ON | The accumulator resets on the next Event.
Preset | Specifies the initial value, and the minimum value to which the accumulator is reset when the Reset parameter is ON between -16777216 to 16777216. The default value is 0.000.

## Accumulate Outputs

Returns | The current accumulated total of the Value parameter since the last Reset.