CogPrioEvent Schedule Method (CogPrioEventScheduleTypeConstants, Double, CogPrioState)Cognex VisionPro
Manually schedules an I/O event to occur relative to some other previous state.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 65.1.0.0
Syntax

public CogPrioScheduledEventToken Schedule(
	CogPrioEventScheduleTypeConstants scheduleType,
	double scheduleValue,
	CogPrioState relativeState
)

Parameters

scheduleType
Type: Cognex.VisionPro.Comm CogPrioEventScheduleTypeConstants
Which type of scheduling to use (time or encoder based).
scheduleValue
Type: System Double
How many milliseconds or encoder ticks from the previous state until the event occurs.
relativeState
Type: Cognex.VisionPro.Comm CogPrioState
The event is scheduled relative to this previous state.

Return Value

Type: CogPrioScheduledEventToken
A CogPrioScheduledEventToken which can be used to discover the instant at which the I/O event was scheduled or to cancel a scheduled event.
Exceptions

ExceptionCondition
CogScheduledEventTooLateException Thrown if event scheduling failed because the event would have occurred in the past.
CogScheduledEventOverflowException Thrown if event scheduling failed because the maximum number of outstanding scheduled events has been reached (Current firmware sets this limit at 1000).
NotImplementedException Thrown if scheduleType is set to Encoder.
InvalidOperationException Thrown if this object is not part of the CogPrio.Events collection or if CogPrio.Valid is false when Schedule() is called.
Remarks

A precision I/O event can occur as a result of one of the configured event causes (see CausesNdm , CausesLine ).

A precision I/O event can also occur as a result of manual user scheduling.

See Also