Base class for all Cognex frame grabber's discrete I/O.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.Implementation CogSerializableObjectBase
Cognex.VisionPro.Implementation CogSerializableChangedEventBase
Cognex.VisionPro.QuickBuild.IO CogIODevice
Cognex.VisionPro.QuickBuild.IO CogIODiscreteDevice
Cognex.VisionPro.QuickBuild.Implementation.Internal CogIOFrameGrabber
Cognex.VisionPro.QuickBuild.Implementation.Internal CogIO8500Le
Cognex.VisionPro.QuickBuild.Implementation.Internal CogIO8501
Cognex.VisionPro.QuickBuild.Implementation.Internal CogIO8504
Cognex.VisionPro.QuickBuild.Implementation.Internal CogIO8600
Namespace: Cognex.VisionPro.QuickBuild.Implementation.Internal
Assembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax
The CogIOFrameGrabber type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogIOFrameGrabber(SerializationInfo, StreamingContext) | ||
| CogIOFrameGrabber(String, String, Int32) |
Methods
| Name | Description | |
|---|---|---|
| CanBeStrobeLine | ||
| CanBeTriggerLine | ||
| Close | (Overrides CogIODevice Close .) | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| EnableLine(Int32, Boolean) | ||
| EnableLine(Int32, Boolean, Boolean) | ||
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetBiDirectionalLineCount | ||
| GetCallDelegate | (Overrides CogIODiscreteDevice GetCallDelegate(Int32).) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetCogInputLine | ||
| GetCogOutputLine | ||
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetCurrentActivityCount |
Cognex internal use only
(Inherited from CogIODiscreteDevice.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetInputDelegate | (Overrides CogIODiscreteDevice GetInputDelegate(Int32).) | |
| GetInputLineCount | ||
| GetIOConfigFromVisionProINI | ||
| GetIOConfigTypeFromString | ||
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetLineAlias(Int32) | ||
| GetLineAlias(Int32, Boolean) | ||
| GetLinePolarity(Int32) | ||
| GetLinePolarity(Int32, Boolean) | (Overrides CogIODiscreteDevice GetLinePolarity(Int32, Boolean).) | |
| GetLinePulseWidth(Int32) | ||
| GetLinePulseWidth(Int32, Boolean) | ||
| GetLineStatus(Int32) | ||
| GetLineStatus(Int32, Boolean) | ||
| GetObjectData |
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.) | |
| GetOutputLineCount | ||
| GetPrivateProfileString |
Utility for reading VisionPro.ini file.
| |
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetStringFromIOConfigType | ||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValue(Int32) |
Returns the current line value. Don't call this function when the
frame grabber type is 8600. Lines are not thread-safe. You must
make sure that your code using this method is thread-safe.
| |
| GetValue(Int32, Boolean) | ||
| InitializeInputLine | ||
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| InitializeOutputLine | ||
| IsInputAsserted | (Overrides CogIODiscreteDevice IsInputAsserted(Int32).) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| OnChanged(Int64) |
This method should be called internally whenever the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) | |
| OnChanged(CogChangedEventArgs) |
This method may be called internally whenever a derived object's state
may have changed and the derived object expresses this change via a
derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.) | |
| Open | (Overrides CogIODevice Open .) | |
| ResetAllWriteActivityCounter |
Cognex internal use only
(Inherited from CogIODiscreteDevice.) | |
| ResumeAndRaiseChangedEvent |
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.) | |
| SetCallDelegate | (Overrides CogIODiscreteDevice SetCallDelegate(Int32, Boolean).) | |
| SetInputDelegate | (Overrides CogIODiscreteDevice SetInputDelegate(Int32, CogIODiscreteDevice InputDelegateFn).) | |
| SetInputLine | ||
| SetLineAlias(Int32, String) | ||
| SetLineAlias(Int32, String, Boolean) | ||
| SetLinePolarity(Int32, CogIOLinePolarity) | ||
| SetLinePolarity(Int32, CogIOLinePolarity, Boolean) | (Overrides CogIODiscreteDevice SetLinePolarity(Int32, CogIOLinePolarity, Boolean).) | |
| SetLinePulseWidth(Int32, Int32) | ||
| SetLinePulseWidth(Int32, Int32, Boolean) | ||
| SetOutputLine | ||
| SetValue |
Output lines are not thread-safe. You must make sure that your
code using this method is thread-safe.
(Overrides CogIODiscreteDevice SetValue(Int32, Boolean).) | |
| SuspendChangedEvent |
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.) | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| Write |
Output lines are not thread-safe. You must make sure that
your code using this method is thread-safe.
(Overrides CogIODevice Write(CogIOOutputData).) | |
| WriteSyncPulse |
Output lines are not thread-safe. You must make sure that your
code using this method is thread-safe.
(Overrides CogIODiscreteDevice WriteSyncPulse(Int32).) |
Fields
Properties
| Name | Description | |
|---|---|---|
| ChangedEventSuspended |
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.) | |
| DeviceIndex |
Return the index number of CogIODevice object.
(Inherited from CogIODiscreteDevice.) | |
| DeviceName |
Return the name that characterizes the instance of CogIODevice object.
(Inherited from CogIODevice.) | |
| Enabled | (Inherited from CogIODiscreteDevice.) | |
| GetStartingIOLine |
Returns the starting I/O line
8501, 8504e and 8504 start from 0
8500Le starts from 8
| |
| HasChanged | (Inherited from CogSerializableChangedEventBase.) | |
| InputDelegate | (Inherited from CogIODiscreteDevice.) | |
| IOConfig |
Getter and setter for I/O configuration.
| |
| IsDeviceOpen | (Overrides CogIODevice IsDeviceOpen.) | |
| MonitorInputs | (Overrides CogIODiscreteDevice MonitorInputs.) | |
| StateFlags |
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.) |
Events
| Name | Description | |
|---|---|---|
| Changed |
This event is raised when one or more parts of the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) | |
| IOLineChanged |
Cognex internal use only
(Inherited from CogIODiscreteDevice.) |
See Also