ICogFrameGrabber GetNumCameraPorts Method Cognex VisionPro 9.21
Number of camera ports available for the given video format.

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

int GetNumCameraPorts(
	string videoFormat
)

Parameters

videoFormat
Type: System String

The video format.

Return Value

Type: Int32
Remarks

Returns the number of physical camera ports for a particular video format on this frame grabber. Camera port numbering starts at zero. The highest camera port number is one less than GetNumCameraPorts(String).

Your frame grabber may not be able to acquire images from all ports simultaneously. Use NumVideoChannels to determine how many images can be acquired at the same time.

Refer to the manual for the frame grabber you are using for information on how software port numbers map to the physical ports on your hardware.

Compare this function with NumCameraPorts.

See Also