# Latch

Stores (latches) an input value on the specified event.

Inputs

The Latch 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:

Latch(Event, Value)

See the table for a description of the available parameters.

Parameter | Description
Event | Specifies the update event on which to read the Value. This parameter must be a reference to one of the following: The Image data structure in cell A0 , containing the AcquireImagefunction. A cell containing Button function.
Value | A reference to the cell containing the data to store. Allowed data types are bool, int, or float.

Outputs

Returns | The value stored on the last event.

## Related Sections

Clocked Data Storage Functions