Is_Waitfornextimage - THORLABS DCU223x Operation Manual And Sdk

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

DCx Cameras

4.3.102 is_WaitForNextImage

USB 2.0
USB 3.0
Syntax
INT is_WaitForNextImage(HIDS hCam, UINT timeout, char** ppcMem, INT* imageID)
Description
is_WaitForNextImage() returns the pointer and sequence ID of the first (i.e. oldest) image in a memory
sequence. The queue mode has to be enabled for the memory sequence (see
sequence does not contain images, is_WaitForNextImage() waits until a new image arrives or until the
specified time has elapsed.
Note
Note that also image capture errors are added to the ImageQueue like images. If a call of
is_WaitForNextImage() returns the IS_CAPTURE_STATUS return value then you can check by a new call of
the function, if any further images were enqueued into the ImageQueue after the error.
Attention
Image memories in a sequence with queue mode are automatically locked. The image memories will have to be
unlocked with
is_UnlockSeqBuf()
Input parameters
hCam
timeout
ppcMem
imageID
Return values
IS_CANT_COMMUNICATE_WITH_DRIVER
IS_CANT_OPEN_DEVICE
IS_INVALID_CAMERA_HANDLE
IS_INVALID_MEMORY_POINTER
IS_INVALID_PARAMETER
IS_IO_REQUEST_FAILED
IS_NO_SUCCESS
IS_SUCCESS
IS_TIMED_OUT
IS_CAPTURE_STATUS
356
USB 2.0
USB 3.0
in order to be re-used in the sequence.
354
Camera handle
Timeout in ms. Range 0...2
If no images are in the sequence and no image arrives during the timeout, the
function returns IS_TIMED_OUT.
Pointer to a variable which will receive the address of the last image in the
sequence.
Pointer to a variable which will receive the sequence ID of the oldest image in
the sequence.
Communication with the driver failed because no driver
has been loaded.
An attempt to initialize or select the camera failed (no
camera connected or initialization error).
Invalid camera handle
Invalid pointer or invalid memory ID
One of the submitted parameters is outside the valid
range or is not supported for this sensor or is not
available in this mode.
An IO request from the uc480 driver failed. Possibly the
versions of the uc480_api.dll (API) and the driver file
(uc480_usb.sys) do not match.
General error message
Function executed successfully
A timeout occurred. An image capturing process could
not be terminated within the allowable period.
A transfer error occurred or no image memory was
available for saving.
The parameter IS_CAPTURE_STATUS replaces the
previous parameter IS_TRANSFER_FAILED.
is_InitImageQueue()
32
-1
). If the
278
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents