# Event

Updates the spreadsheet on the specified event trigger. The 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. is used as a critical dependency in causing the spreadsheet to update only on specific input/output conditions.

Inputs

Parameter | Description
--- | ---
Trigger | Specifies a trigger source for the event.
0 | Acquisition Acquisition is the process or result of the vision system acquiring a new image. Missed | Generated when an acquisition trigger is missed. Possible causes of a missed acquisition trigger include: An acquisition trigger is received during an in-progress acquisition. No image buffer is available when an acquisition trigger is received. To resolve unwanted Acquisition Missed events, you can adjust the acquisition settings in the Acquisition Panel: Decrease motion speed or increase trigger delay to eliminate overlapping acquisitions. Decrease the resolution of the acquisitions to decrease acquisition time.
1 | Acquisition Job A job is a user-configured program in Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the Spreadsheet interface, and load them on a vision system for deployment in a live environment. Complete | Generated at the end of the acquisition-initiated spreadsheet execution.
2 | Encoder Overrun | An encoder overrun occurs when the advancing encoder requests acquisition of the next line, but acquisition of the previous line is still in progress.
3 | AutoFocus Complete | Generated when an AutoFocus operation completes.
22 | Network Error | Generated when the WriteImage function fails to send an image.
32 | Manual Acquire | Generated when the ManualAcquire event has been raised by SetEvent, Button, or other similar sources.
33 | Online/Offline | Generated when an In-Sight vision system switches between online and offline states.
35 | Job Load Complete | Generated after a job is loaded completely.
36 | Serial | Generated when the serial port receives data.
100 to 107 | Discrete 0 to 7 | Generated when the rising edge signal activity occurs on a corresponding discrete input line.
200 to 207 | External 0 to 7 | Generated when a Soft Event is executed. Examples of a Soft Event include a PLC A Programmable Logic Controller is a ruggedized computer that you can use for automating processes or even an entire production line.-driven external event, SetEvent, Button function, or a Set Event or Set Event and Wait Native Mode command.

Output

Returns | An Event data structure, or #ERR if any of the input parameters are invalid.