Event

Updates the spreadsheet on the specified event trigger. The Event function is used as a critical dependency in causing the spreadsheet to update only on specific input/output conditions.

Event Inputs

Syntax: Event(Trigger,Manual)

Parameter Description
Trigger Specifies a trigger source for the event when the In-Sight sensor is Online. For more information, see Online/Offline.

16

Acquisition Error

Generated when an ERR: Missed Acquisition output is sent, or when a vision system loses communication. For more information, see Configure Discrete I/O Lines.

Note: The Trigger parameter in the AcquireImage property sheet must be set to Camera to use this trigger.

17

Discrete I/O Error

Generated when a tracking pulse overrun occurs, or the tracking pulse queue is full.

18

Serial Port 0 Error

Not implemented.

19

Serial Port 1 Error

Not implemented.

20

Spreadsheet Error

Generated when a #ERR is returned in a cell for the first time during job execution.

21

System Error

Not implemented.

22

Network Error

Generated when using the:

  • TCPDevice or WriteResult functions, and these functions have received a socket error from a low-level network library.
  • TCPDevice function and a packet is received but cannot be handled because the job is being executed.
  • WriteFTP or  WriteImageFTP functions and network parameter settings (Host Name, User Name, Password, etc.) are invalid.

32

Manual

Generated when a manual trigger is initiated with the vision system Online.

33

Online/Offline

Generated when an In-Sight vision system switches between Online/Offline states.

35

Job Load Done

Generated after a job is loaded.

39

Acquisition Job Complete

Generated at the end of acquisition-initiated job execution.

Note: The Trigger parameter in the AcquireImage property sheet must be set to Manual to use this trigger.

49 to 60

Discrete 0 to 11

Generated when the corresponding discrete input is configured as an Event Trigger, and the specified signal activity (i.e. Rising Edge, Falling or both) occurs. For more information, see Configure Discrete I/O Lines.

64

Serial port 0

Not implemented.

65 Serial port 1

Generated when the serial port is configured for either DeviceNet or Text Mode, and data is received on the serial port. For more information, see Serial Port Settings Dialog.

80 to 87

Soft 0 - 7

(default = Soft 0)

Generated when a SetEvent, Button or Timer function, or a Set Event or Set Event and Wait Native Mode command, soft trigger is executed.

135 Tune Button Generated when the Tune button on the In-Sight 7000 Gen2 series vision system or In-Sight 9000 series vision system is pressed.
Manual

Specifies whether manual triggering is issued when the event is triggered while the In-Sight vision system is Offline. For more information, see Online/Offline.

0

OFF (default)

Manual triggering is not issued.

1 ON

Manual triggering is issued.

Event Outputs

Returns

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