# ClockedMax

Samples a stream of values over an infinite interval, then returns the maximum value sampled from the stream during that interval.

Inputs

The ClockedMax 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. has the following syntax:

ClockedMax(Event, Value, Reset, Preset)

See the table for a description of the available parameters.

Parameter | Description
Event | Specifies the event that forces an update. This parameter needs to refer to any event with a timestamp, for example, one of the following: A cell containing an Event function. A cell containing a Button function.
Value | A reference to the source cell for the data stream on which a maximum is sought between the values of -9999999 to 9999999. The default value is 0.
Reset | Forces the function to reset its internal register to the value specified by Preset.
0 = OFF (default) | The function continues to sample Value in the current data stream.
1 = ON | The function resets the maximum value it returns, and begin a new data stream from which to sample.
Preset | Specifies the maximum value to which the function is reset between the values of -9999999 to 9999999. The default value is -9999999.

Outputs

Returns | A value representing the maximum of a data stream over an interval from Reset to current.