# StoreData

You can use the StoreData 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. in conjunction with a Repeat or RepeatUntil function to store the results of a cell.

Note:

- When used in conjunction with the Repeat or RepeatUntil functions to generate a loop, place the StoreData function inside the loop of spreadsheet cells being iterated. Otherwise, the StoreData function only runs once, and does not update in sync with the loop.
- The StoreData function stores data in a "first in, first out" manner, meaning that when it stores a new result, that result is stored in the buffer under index 0, and subsequent results are stored under a subsequent index.
- The StoreData function does not store the data it contains when the job A job is a user-configured program in In-Sight 3D Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the In-Sight 3D Spreadsheet interface, and load them on a vision system for deployment in a live environment. file is saved. StoreData functions in your job file automatically reset when you load a new instance of the job.
- If a stored cell contains a reference to an input image, the StoreData function does not store the input image. If you reference the StoreData output with a GetValue function, the GetValue function output only displays the graphics unique to the stored cell.

Inputs

The StoreData function has the following syntax:

Syntax: StoreData (Event,Data,Number of Steps,Reset)

See the table for a description of the available parameters.

Parameter | Description
--- | ---
Event | Specifies the event on which to read the specified Data. This parameter must be a reference to one of the following: The Image data structure in cell A1. A cell containing an Event function. A cell containing a Button function.
Data | Specifies a reference to a cell containing a results restructuring cell with numeric or string values. Note: The StoreData function cannot be used with Image functions, DetectFlaw, FlexFlawModel, ReadIDMax, TrainFlawModel, TrainPatMaxPattern, ValidateIDData, VerifyIDCode.
Number of Steps | Specifies the number of repetitive iterations; 1 to 5000. The default is 10.
Reset | Specifies if the stored data resets at the next Event.

Outputs

Returns | A Data structure containing result data for the specified Data over an interval from Reset to current.