CogIODeviceList holds all I/O device objects that can be found
in the system. However, this class can be used to add, remove
or return a reference to the device object. See CogJobManager
IODeviceList for getting references to devices in the system.
Note: CogJobManger should only instantiate this class.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.Implementation CogSerializableObjectBase
Cognex.VisionPro.Implementation CogSerializableChangedEventBase
Cognex.VisionPro.QuickBuild.IO CogIODeviceList
Namespace: Cognex.VisionPro.QuickBuild.IO
Assembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 75.0.0.0 (75.0.0.0)
Syntax
The CogIODeviceList type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogIODeviceList |
Initializes a new instance of CogIODeviceList object.
| |
| CogIODeviceList(SerializationInfo, StreamingContext) |
Initializes a new instance of CogIODeviceList object.
|
Methods
| Name | Description | |
|---|---|---|
| AddDiscreteDevice(CogIODiscreteDevice) |
Cognex Internal Use Only
| |
| AddDiscreteDevice(String, Int32) |
Cognex Internal Use Only
| |
| AddTCPIPDevice(CogIOTCPIP) |
Cognex Internal Use Only
| |
| AddTCPIPDevice(CogIOTCPIP DeviceMode, String) |
Cognex Internal Use Only
| |
| AddTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32) |
Cognex Internal Use Only
| |
| 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.) | |
| Equals | (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.) | |
| FindAllDevices |
Cognex Internal Use Only
| |
| FindAllDiscreteDevices |
Cognex Internal Use Only
| |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| 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.) | |
| 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.) | |
| GetDiscreteDevice(Int32) |
Returns the discrete device object indexed by listIndex
| |
| GetDiscreteDevice(String, Int32) |
Returns the discrete device object that matches deviceTypename and
boardIndex.
| |
| 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.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData |
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.) | |
| 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.) | |
| GetTCPIPDevice(Int32) |
Cognex Internal Use Only
| |
| GetTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32) |
Cognex Internal Use Only
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| IsAnotherDeviceNamePresent |
Cognex Internal Use Only
| |
| IsAnotherDevicePresent(CogIOTCPIP) |
Cognex Internal Use Only
| |
| IsAnotherDevicePresent(CogIODeviceType, Object ) |
Cognex Internal Use Only
| |
| 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.) | |
| RemoveDiscreteDevice(CogIODiscreteDevice) |
Remove a matching discrete device object from the list
| |
| RemoveDiscreteDevice(String, Int32) |
Remove the device object that matches both deviceTypeName and
boardIndex.
| |
| RemoveTCPIPDevice(CogIOTCPIP) |
Cognex Internal Use Only
| |
| RemoveTCPIPDevice(CogIOTCPIP DeviceMode, String, Int32) |
Cognex Internal Use Only
| |
| 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.) | |
| 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 | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| discreteList |
Contains a list of discrete I/O devices.
| |
| ipList |
Contains a list of TCP/IP devices.
| |
| otherList |
Contains a list of other I/O devices.
| |
| serialList |
Contains a list of serial devices.
| |
| SfAddDiscreteDevice | ||
| SfAddTCPIPDevice | Add TCPIP device change flag | |
| SfNextSf | ||
| SfRemoveDiscreteDevice | ||
| SfRemoveTCPIPDevice | Remove TCPIP device change flag |
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.) | |
| DiscreteDeviceCount |
Returns the total discrete device count in the list.
| |
| DiscreteDevices |
Retrieves an array of discrete devices that are in the list.
| |
| HasChanged | (Inherited from CogSerializableChangedEventBase.) | |
| 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.) | |
| TCPIPDeviceCount | ||
| TCPIPDevices |
Cognex Internal Use Only
|
Events
| Name | Description | |
|---|---|---|
| Changed |
This event is raised when one or more parts of the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) |
See Also