Set the direction for the specified port. May be set to
CogIOMCBPortDirectionConstants.Output, or
CogIOMCBPortDirectionConstants.Input, or
CogIOMCBPortDirectionConstants.Undefined.
Namespace: Cognex.VisionPro.QuickBuild.IOAssembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax
Parameters
- port
- Type: Cognex.VisionPro.QuickBuild.IO CogIOMCBPortNumberConstants
The port of interest (CogIOMCBPortNumberConstants.PortA, .PortB, .PortCL, or .PortCH).
- direction
- Type: Cognex.VisionPro.QuickBuild.IO CogIOMCBPortDirectionConstants
The desired direction (CogIOMCBPortDirectionConstants.Output or .Input).
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when a port's Direction value is changed. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
See Also