CogCommCardStatusEventConstants EnumerationCognex VisionPro 9.8 SR1
Constants enumerating the possible Comm Card status event values.

Sign up for the CardStatus event and use the use the StatusCode property of the event args to identify which status event code is being reported by the Comm Card.

Refer to the documentation for CogCommCardStatusEventConstants to learn what kinds of status codes are reported by the Comm Card.

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

public enum CogCommCardStatusEventConstants
Members

  Member nameValueDescription
HostNotificationDropped-2147475423 Indicates that some of the Comm Card's precision I/O HostNotification Events may have been dropped because the queue is full. This can happen when the Host PC does not process the HostNotification events quickly enough, for instance: if your host application is stopped at a breakpoint while inputs to the Comm Card continue to cause CogPrio events on the card, you may see the HostNotificationDropped card status event when you resume your application.

Listen for the HostNotificationDropped card status event to know when a precision I/O HostNotification event has been dropped. Note that the corresponding CogPrio event, and any responses will still have occurred on the board, and only the notification to the host PC has been lost.

The HostNotificationDropped card status event should not occur while running a stable, well behaved application.

If your application causes a HostNotificationDropped card status event, and your application wasn't just sitting at a breakpoint, it's likely that the CogPrio HostNotification events are significantly delayed from when the actual event has occurred on the card and you may need to slow down you input events or reduce the number of CogPrio events that have HostNotification event handlers.

You can monitor whether HostNotification for the events are falling behind the actual events on the board using the state information contained in the HostNotification event args (State). Comparing the TimeStamp from the HostNotification event args with the TimeStamp from the current State (i.e. e.State.TimeDifference(mPrio.ReadState()) ) will tell you how long ago the actual event occurred on the board relative to when HostNotification was received.

Note that the HostNotificationDropped card status event is raised as soon as possible after HostNotification queue has overflowed. HostNotification events that are already in the queue will continue to arrive, however, the card status event will arrive well before the HostNotification queue has been drained to the point where the dropped notifications would have been.

OutOfPulsedEvents-2147475422 A precision I/O pulsed output line response was dropped! The number of outstanding pulsed line responses exceeded the maximum.

Cognex Internal Use Only

OutOfDelayedEvents-2147475421 A precision I/O delayed output line response was dropped! The number of outstanding delayed line responses exceeded the maximum.

Cognex Internal Use Only

ItemScheduledLate-2147475420 A precision I/O event or response was dropped by the internal scheduling mechanism! The Comm Card was not able to schedule an event or response in time.

Cognex Internal Use Only

See Also