| Home > C: Programming > Function descriptions > | History back Previous chapter Next chapter Print |
is_WaitForNextImage |
|
uEye Camera Manual Version 4.00
|
|
USB 2.0 USB 3.0 GigE |
USB 2.0 USB 3.0 GigE |
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 is_InitImageQueue()). If the sequence does not contain images, is_WaitForNextImage() waits until a new image arrives or until the specified time has elapsed.
|
|
|
|
Input parameters
hCam |
Camera handle |
timeout |
Timeout in ms. Range 0…232-1 If no images are in the sequence and no image arrives during the timeout, the function returns IS_TIMED_OUT. |
ppcMem |
Pointer to a variable which will receive the address of the last image in the sequence. |
imageID |
Pointer to a variable which will receive the sequence ID of the oldest image in the sequence. |
Return values
IS_CANT_COMMUNICATE_WITH_DRIVER |
Communication with the driver failed because no driver has been loaded. |
IS_CANT_OPEN_DEVICE |
An attempt to initialize or select the camera failed (no camera connected or initialization error). |
IS_INVALID_CAMERA_HANDLE |
Invalid camera handle |
IS_INVALID_MEMORY_POINTER |
Invalid pointer or invalid memory ID |
IS_INVALID_PARAMETER |
One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode. |
IS_IO_REQUEST_FAILED |
An IO request from the uEye driver failed. Possibly the versions of the ueye_api.dll (API) and the driver file (ueye_usb.sys or ueye_eth.sys) do not match. |
IS_NO_SUCCESS |
General error message |
IS_SUCCESS |
Function executed successfully |
IS_TIMED_OUT |
A timeout occurred. An image capturing process could not be terminated within the allowable period. |
IS_CAPTURE_STATUS |
A transfer error occurred or no image memory was available for saving. The parameter IS_CAPTURE_STATUS replaces the previous parameter IS_TRANSFER_FAILED. The parameter IS_TRANSFER_FAILED was moved into the new header file ueye_deprecated.h, which contains all obsolete function definitions and constants. If necessary the header file ueye_deprecated.h can be included in addition to the header file ueye.h. |
Related functions
See also: •How to proceed: Image memory sequences •How to proceed: Allocating image memory •Transfer error: uEye Cockpit Image infos •Transfer error: is_GetImageInfo() |