ICogFrameGrabberCVM CVMID Property Cognex VisionPro
Returns the id of any attached CVM.

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

int CVMID { get; }

Property Value

Type: Int32
Remarks

Returns the ID of any attached CVM. The CVM ID is the same as the CVM number. For example, the ID of CVM11 is 11.

Returns −1 if the frame grabber supports CVMs but there is no CVM present. Returns −2 if the frame grabber has no CVM connector.

See the example to learn how to test whether your frame grabber supports CVMs.

Use CVMID for informational purposes only and not as a substitute for querying the capabilities of your frame grabber such as ICogFrameGrabber.GetNumCameraPorts(String).

See Also