CogPrioState ClassCognex VisionPro
Represents the state of a precision I/O interface at a particular moment in time.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Inheritance Hierarchy

System Object
  Cognex.VisionPro.Comm CogPrioState

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

public sealed class CogPrioState

The CogPrioState type exposes the following members.

Constructors

  NameDescription
Public methodCogPrioState
Construt a CogPrioState
Top
Methods

  NameDescription
Public methodBank
Returns the values all lines in an i/o bank as an integer value.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLine
Returns the line value of the user supplied line at the moment the state was read.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Public methodTimeDifference
Returns the time difference between this state and some other state states in milliseconds (otherState - thisState).
Public methodToString (Overrides Object ToString .)
Top
Properties

  NameDescription
Public propertyEncoderCount
The encoder count when the state was read.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Note that current hardware platforms use only 32-bits of encoder data. This means that depending on the hardware, the encoder may rollover (go back to 0) when the encoder count reaches 0xFFFFFFFF (or 4294967295).

Public propertyItem
Get's value of a line that was caputured with this state object.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Public propertyTimeStamp
The time stamp counter when the state was read.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Top
See Also