USB 2.0 USB 3.x GigE |
USB 2.0 USB 3.x GigE |
Syntax
INT is_CaptureStatus (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
The function returns information on errors that occurred during an image capture. All errors are listed that occurred since the last reset of the function.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.
Input parameters
hCam |
Camera handle |
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
cbSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
Content of the UEYE_CAPTURE_STATUS enumeration
IS_CAP_STATUS_API_NO_DEST_MEM |
There is no destination memory for copying the finished image.
|
|
IS_CAP_STATUS_API_CONVERSION_FAILED |
The current image could not be processed correctly.
|
|
IS_CAP_STATUS_API_IMAGE_LOCKED |
The destination buffers are locked and could not be written to.
|
|
IS_CAP_STATUS_DRV_OUT_OF_BUFFERS |
No free internal image memory is available to the driver. The image was discarded.
|
|
IS_CAP_STATUS_DRV_DEVICE_NOT_READY |
The camera is no longer available. It is not possible to access images that have already been transferred.
|
|
IS_CAP_STATUS_TRANSFER_FAILED |
The image was not transferred.
|
|
IS_CAP_STATUS_DEV_TIMEOUT |
The maximum allowable time for image capturing in the camera was exceeded.
|
|
IS_CAP_STATUS_ETH_BUFFER_OVERRUN |
The sensor transfers more data than the internal camera memory of the GigE uEye camera can accommodate.
|
|
IS_CAP_STATUS_ETH_MISSED_IMAGES / IS_CAP_STATUS_DEV_MISSED_IMAGES |
Freerun mode: The camera could neither process nor output an image captured by the sensor. Hardware trigger mode: The camera received a hardware trigger signal which could not be processed because the sensor was still busy.
|
|
IS_CAP_STATUS_DEV_FRAME_CAPTURE_FAILED
|
USB 3 uEye CP Rev. 2 with activated image memory only: The image was not transferred.
|
Contents of the UEYE_CAPTURE_STATUS_INFO structure
DWORD |
dwCapStatusCnt_Total |
Returns the total number of errors occurred since the last reset. |
BYTE |
reserved[60] |
Reserved for an internal function |
DWORD |
adwCapStatusCnt_Detail[256] |
This array returns the current count for each possible error. The possible errors are listed above. |
Return values
IS_INVALID_CAMERA_HANDLE |
Invalid camera handle |
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_NO_SUCCESS |
General error message |
IS_SUCCESS |
Function executed successfully |
Related functions
UEYE_CAPTURE_STATUS_INFO CaptureStatusInfo;
INT nRet = is_CaptureStatus(m_hCam, IS_CAPTURE_STATUS_INFO_CMD_GET, (void*)&CaptureStatusInfo,
sizeof(CaptureStatusInfo));
if (nRet == IS_SUCCESS)
{
UINT nConversionFailed = CaptureStatusInfo.adwCapStatusCnt_Detail[IS_CAP_STATUS_API_CONVERSION_FAILED];
UINT nTotalInfos = CaptureStatusInfo.dwCapStatusCnt_Total;
}
INT nRet = is_CaptureStatus(m_hCam, IS_CAPTURE_STATUS_INFO_CMD_RESET, NULL, 0);