Please enable JavaScript to view this site.

IDS Software Suite - obsolete functions 4.97

Windows_Logo
Linux_Logo

USB 2.0

USB 3.x

GigE

USB 2.0

USB 3.x

GigE

Syntax

INT is_WaitForNextImage (HIDS hCam, UINT timeout, char** ppcMem, INT* pnMemId)

Description

hint_info

This function is obsolete and should not be used anymore. We recommend to use the is_ImageQueue() function instead.

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.

hint_info

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.

hint_info

Image memories in a sequence with queue mode are automatically locked. The image memories will have to be unlocked with is_UnlockSeqBuf() in order to be re-used in the sequence.

Input parameters

hCam

Camera handle

timeout

Timeout in milliseconds (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.

pnMemId

Pointer to a variable which will receive the sequence ID (position in the sequence list) 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_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. You can use is_CaptureStatus() to query the error cause. For example, the image memory could be locked and must be released first with is_UnlockSeqBuf().

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

is_InitImageQueue()

is_ExitImageQueue()

is_UnlockSeqBuf()