CogPrioEvent ClassCognex VisionPro
Class which represents a precision I/O event.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.Implementation CogTrackedItemBaseEx
            Cognex.VisionPro.Comm.Implementation.Internal CogPrioEventBase
              Cognex.VisionPro.Comm CogPrioEvent

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

[SerializableAttribute]
public sealed class CogPrioEvent : CogPrioEventBase, 
	IDisposable

The CogPrioEvent type exposes the following members.

Constructors

  NameDescription
Public methodCogPrioEvent 
Construct a new precision i/o event instance.
Public methodCogPrioEvent(String)
Construct a new precision i/o event instance.
Public methodCogPrioEvent(String, CogPrioEventCauseLineCollection, CogPrioEventCauseNdmCollection, CogPrioEventResponseLineCollection)
Construct a new precision i/o event instance.
Top
Methods

  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodSchedule 
Manually schedules an I/O event to occur as soon as possible.
Public methodSchedule(CogPrioEventScheduleTypeConstants, Double)
Manually schedules an I/O event to occur.
Public methodSchedule(CogPrioEventScheduleTypeConstants, Double, CogPrioState)
Manually schedules an I/O event to occur relative to some other previous state.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfCausesLine
This bit will be set in the EventArgs of a Changed event every time the value returned by CausesLine may have changed.
Public fieldStatic memberSfCausesNdm
This bit will be set in the EventArgs of a Changed event every time the value returned by CausesNdm may have changed.
Public fieldStatic memberSfHasHostNotificationListener
This bit will be set in the EventArgs of a Changed event every time a handler is added or removed to the HostNotification Event.
Public fieldStatic memberSfResponsesLine
This bit will be set in the EventArgs of a Changed event every time the value returned by ResponsesLine may have changed.
Top
Properties

  NameDescription
Public propertyCausesLine
A collection of CogPrioEventCauseLine which cause the event to occur.
Public propertyCausesNdm
A collection of CogPrioEventCauseNdm which cause the event to occur.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyEventNumber
A value which uniquely identifies this event.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyHasHostNotificationListener
Returns true if there is currently an event handler listening for host notification of this event.
Public propertyID (Inherited from CogTrackedItemBaseEx.)
Public propertyName (Inherited from CogTrackedItemBaseEx.)
Public propertyParent (Inherited from CogTrackedItemBaseEx.)
Public propertyResponsesLine
A collection of CogPrioEventResponseLine which occur in response to the event.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Public eventHostNotification
The HostNotification event is raised to signal the PC that a precision I/O event has occurred on the comm card hardware.
Public eventNameChanging (Inherited from CogTrackedItemBaseEx.)
Top
Remarks

Precision I/O supports getting and setting the state of the Comm Card's Discrete I/O lines.

Precision I/O also supports configuration of an event system that runs on the Comm Card's real-time processor.

The precision I/O event system allows the Comm Card to receive inputs and automatically react to them without involving the host PC.

This enables accurate configuration and reporting of I/O events and avoids typical host PC latency issues.

See Also