THORLABS DCU223x Operation Manual And Sdk page 196

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

Advertisement

DCx Cameras
Return values
IS_CANT_COMMUNICATE_WITH_DRIVER
IS_CANT_OPEN_DEVICE
IS_INVALID_CAPTURE_MODE
IS_INVALID_CAMERA_HANDLE
IS_INVALID_PARAMETER
IS_IO_REQUEST_FAILED
IS_NO_SUCCESS
IS_NOT_SUPPORTED
IS_OUT_OF_MEMORY
IS_SUCCESS
Example 1
INT nSupportedFeatures;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_SUPPORTED_FEATURES,
if
(nRet == IS_SUCCESS)
{
if
(nSupportedFeatures & IS_DEVICE_FEATURE_CAP_LINESCAN_MODE_FAST)
{
// Enable line scan mode
INT nMode = IS_DEVICE_FEATURE_CAP_LINESCAN_MODE_FAST;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LINESCAN_MODE, (void*)&nMode,
// Disable line scan mode
nMode = 0;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LINESCAN_MODE, (void*)&nMode,
// Return line scan mode
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LINESCAN_MODE, (void*)&nMode,
}
if
(nSupportedFeatures & IS_DEVICE_FEATURE_CAP_LINESCAN_NUMBER)
{
// Set line number
INT nLineNumber = 512;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LINESCAN_NUMBER,
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LINESCAN_NUMBER,
}
}
Example 2
/* Read and set default Log mode */
UINT nDefaultLogMode = 0;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_DEFAULT,
if
(nRet == IS_SUCCESS) {
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LOG_MODE,
}
Example 3
/* Read current Log pixel mode */
UINT nLogMode = 0;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LOG_MODE,
194
(void*)&nSupportedFeatures, sizeof(nSupportedFeatures));
sizeof(nMode));
sizeof(nMode));
sizeof(nMode));
(void*)&nLineNumber, sizeof(nLineNumber));
(void*)&nLineNumber, sizeof(nLineNumber));
(void*)&nDefaultLogMode, sizeof(nDefaultLogMode));
(void*)&nDefaultLogMode, sizeof(nDefaultLogMode));
(void*)&nLogMode, sizeof(nLogMode));
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).
The function can not be executed in the current camera
operating mode (free run, trigger or standby).
Invalid camera handle
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
The camera model used here does not support this
function or setting.
No memory could be allocated.
Function executed successfully
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents