The registered I/O event is raised whenever the configured I/O line transition occurs.
Once an event is added it can be used as an argument to ConfigureOutputLineResponse(CogPrioBankConstants, Int32, Int32, CogPrioOutputLineValueConstants, CogPrioDelayTypeConstants, Double, Double) to set up automatic I/O responses that automatically occur in reaction the event firing.
The user can also manually schedule a configured event to occur at an exact time stamp or encoder count using ScheduleIOEvent(Int32, CogPrioImplEventScheduleTypeConstants, Int64, Int32, Int32 , CogPrioState ).
Additionally the user can receive notifications whenever a configured event occurs using HostNotification.
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 87.1.0.0
Parameters
- eventNumber
- Type: System Int32
A unique ID for the registered I/O Event which occurs whenever the transition configured by lineBank, lineNumber, and transitionType is observed on the comm card.
- lineBank
- Type: Cognex.VisionPro.Comm CogPrioBankConstants
The bank of the I/O line that the event will monitor.
- lineNumber
- Type: System Int32
The line number to monitor.
- transitionType
- Type: Cognex.VisionPro.Comm CogPrioLineTransitionConstants
The type of edge transition to look for.