RtGVStartReceiveStream

RtGVStartReceiveStream starts a receive stream for receiving frames from a camera.

Syntax

BOOL RtGVStartReceiveStream(
	HANDLE cameraHandle, 
	PRTGV_STREAM_PARAMS pStreamParams
	HANDLE * streamErrorEvent
);

Parameters

cameraHandle

A handle to the camera from which frames will be received.

pStreamParams

A pointer to the stream parameters to be used for the receive stream.  See RTGV_STREAM_PARAMS for more information.

streamErrorEvent

A pointer to an event handle that will be signaled if an error occurs in the stream.

Return Values

Returns TRUE if the function succeeds, FALSE if the function fails. Call GetLastError for extended error information.

Remarks

This function will fail if a stream is already started when the function is called.

This function cannot be called before calling RtGVInitialize.

To find the camera to query, call RtGVInitialize and then call RtGVEnumerateCameras to get an RTGV_CAMERA_INFO array describing each of the cameras found on the network, along with each of their handles.

Requirements

Minimum Supported Version RTX64 3.7 Vision SDK

Header

RtGVApi.h

Library

RtGigEVision.lib

See Also:

RtGVEnumerateCameras

RtGVStartCameraStream

RtGVStartStream

RtGVCloseReceiveStream

RTGV_STREAM_PARAMS