RtgvSetAcquisitionMode

RtgvSetAcquisitionMode sets the acquisition mode on the specified camera.

Syntax

Copy
BOOL RtgvSetAcquisitionMode(
    [in]    UINT32 cameraHandle, 
    [in]    ACQUISITIONMODE acquisitionMode,
    [in]    UINT32 hardwareTriggerSource
);

Parameters

[in] cameraHandle

The handle of the camera whose acquisition mode will be set.

[in] acquisitionMode

The acquisition mode to be set on the camera. See enumeration RTGV_ACQUISITIONMODE.

[in] hardwareTriggerSource

The source of the hardware trigger. This parameter is ignored if the acquisition mode is not set to hardware-triggered acquisition mode.

Return Values

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.

Remarks

This function will fail if it is called before RtgvInitialize and RtgvInitCameraControl.

To find the camera to query, call RtgvInitialize and then call RtgvEnumerateCameras to get an RTGV_CAMERA_INFO array describing each camera found on the network, along with its handles.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtgvApi.h

RtgvApi.lib

See Also: