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

Namespace: Cognex.VisionPro.FG8501.Implementation.Internal
Assembly: Cognex.VisionPro.FG8501 (in Cognex.VisionPro.FG8501.dll) Version: 65.1.0.0
Syntax

public virtual int GetNumCameraPorts(
	string videoFormat
)

Return Value

Type: Int32

Implements

ICogFrameGrabber GetNumCameraPorts(String)
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