# Maximum

Keeps the running maximum value over an infinite interval, then returns the running value gathered during that interval.

Inputs

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

Parameter | Description
--- | ---
Event | Specifies the update event on which to read the Value parameter. This parameter must be a reference to one of the following: The Image data structure in cell A1. A cell containing an Event function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications.. A cell containing a Button function. Note: The Maximum function samples 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 source cell for the data stream on which a maximum is observed. Note: If you do not specify a cell reference, the function keeps the same value at each Event.
Reset | Forces the function to reset its internal register to the value specified by the Preset parameter.
0 = OFF (default) | The function continues to sample the Value parameter in the current data stream.
1 = ON | The function resets the output to the value specified by the Preset parameter on the next Event.
Preset | Specifies the initial value, and the maximum value to which the function is reset when the Reset parameter is ON, between -16777216 to 16777216. The default value is -16777216.

Outputs

Returns | The current running maximum of the Value parameter since the last Reset.