GEV_STATUS GevRegisterWriteNoWait

(GEV_CAMERA_HANDLE handle, GEV_REGISTER *pReg,
 int selector, UINT32 size, void *data);

Description

Writes a value to a register without waiting for an acknowledgment that the write succeeded. (A generic register access function).

Note: Writing without waiting for an ack will queue writes in the camera. Eventually the caller should perform a write with an ack in order to make sure all of the queued writes complete before the queue overflows. The number of writes that can be safely queued is dependent on the camera itself. For Teledyne DALSA cameras, this is typically at least 16 write,

Parameters

handle

GEV_CAMERA_HANDLE identifying the camera.

*pReg

Pointer to the GEV_REGISTER structure for the register to be accessed.

selector

Index into a group of registers providing the same functionality. These register groups need to be set up properly in the GEV_REGISTER structure.

This is generally 0 as the ‘array’ based functions can be used to access multiple contiguous locations.

size

Size of the data being written.

*data

Pointer to the data being written.

Return Value

GEV_STATUS

Possible values are

GEVLIB_OK
GEVLIB_ERROR_INVALID_HANDLE

GEVLIB_ERROR_RESOURCE_NOT_ENABLED
(GEV_REGISTER struct is for a register that is not available)

GEVLIB_ERROR_NOT_IMPLEMENTED
(GEV_REGISTER struct is for a Read-Only register)

GEVLIB_ERROR_SOFTWARE

(GEV_REGISTER struct defines an unsupported register type)

Related Topics

Member Function Descriptions