© 2016 Thorlabs Scientific Imaging166
DCx Camera Functional Description and SDK Manual
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_DEFA
ULT
Returns the default settings for the Log mode
(Example 1)
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE
Returns the current Log mode (Example 2)
IS_DEVICE_FEATURE_CMD_SET_LOG_MODE
Sets the Log mode:
0 = IS_LOG_MODE_FACTORY_DEFAULT: Factory
setting for the Log mode
1 = IS_LOG_MODE_OFF: Log mode off
2 = IS_LOG_MODE_MANUAL: Manual Log mode.
In this case the Log mode value and the Log
mode gain are effective.
3 = IS_LOG_MODE_AUTO: Automatic Log mode
(default setting)
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_VALUE_DEFAULT
Returns the default settings for the manual value of
the Log mode (Example 3)
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_VALUE_RANGE
Returns the range of the manual value of the Log
mode.
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_VALUE
Returns the current manual value of the Log mode
(Example 4)
IS_DEVICE_FEATURE_CMD_SET_LOG_MODE_MANU
AL_VALUE
Sets the manual value of the Log mode.
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_GAIN_DEFAULT
Returns the default settings for the manual gain for
the Log mode (Example 5)
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_GAIN_RANGE
Returns the range for the manual gain of the Log
mode.
IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_MANU
AL_GAIN
Returns the current manual gain of the Log mode
(Example 6)
IS_DEVICE_FEATURE_CMD_SET_LOG_MODE_MANU
AL_GAIN
Sets the manual gain of the Log mode.
Pointer to a function parameter, whose function
depends on nCommand.
Size (in bytes) of the memory area to which
pParam refers.
Status flags from DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CAP_LOG_MODE
Log mode is supported/Set mode
Example 1
/* Read and set default Log mode */
UINT nDefaultLogMode = 0;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LOG_MODE_DEFAULT,
(void*)&nDefaultLogMode, sizeof(nDefaultLogMode));
if (nRet == IS_SUCCESS) {
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LOG_MODE,
(void*)&nDefaultLogMode, sizeof(nDefaultLogMode));
}