© 2016 Thorlabs Scientific Imaging172
DCx Camera Functional Description and SDK Manual
Example 4
// Query the default setting for the image memory via camera handle
int nMemoryMode;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE_DEFAULT, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
…
}
// Query the default setting for the image memory via device ID
int nMemoryMode;
nRet = is_DeviceFeature(nDevID | IS_USE_DEVICE_ID, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE_DEFAULT, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
…
}
4.3.15.6 Using the Line Scan Mode
Syntax
INT is_DeviceFeature (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
Using is_DeviceFeature() you can configure special camera functions provided by specific uc480
models:
DCC1240/DCC3240
Only the monochrome camera models DCC1240/DCC3240 currently support the "fast
line scan" mode.
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
IS_DEVICE_FEATURE_CMD_SET_LINESCAN_MODE
Sets the line scan mode, see
DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CMD_GET_LINESCAN_MODE
Returns the current set line scan mode
IS_DEVICE_FEATURE_CMD_SET_LINESCAN_NUMBER
Sets the scan line used for the line scan mode
IS_DEVICE_FEATURE_CMD_GET_LINESCAN_NUMBER
Returns the scan line used for the line scan
mode
Pointer to a function parameter, whose function
depends on nCommand.
Size (in bytes) of the memory area to which
pParam refers.