Get the currently configured direction for the specified port.
Namespace: Cognex.VisionPro.QuickBuild.IOAssembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
Parameters
- port
- Type: Cognex.VisionPro.QuickBuild.IO CogIOMCBPortNumberConstants
The port of interest (CogIOMCBPortNumberConstants.A, .B, .CL, or .CH).
Return Value
Type: CogIOMCBPortDirectionConstantsThe currently configured direction for the specified port. May be CogIOMCBPortDirectionConstants.Undefined, or CogIOMCBPortDirectionConstants.Output, or CogIOMCBPortDirectionConstants.Input.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
See Also