© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
169
Example
/* Query the current settings */
INT nMode = IS_LEVEL_CONTROLLED_TRIGGER_INPUT_OFF;
INT nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_LEVEL_CONTROLLED_TRIGGER_INPUT_MODE,
(void*)&nMode, sizeof(nMode));
if (IS_SUCCESS == nRet)
{
if (IS_LEVEL_CONTROLLED_TRIGGER_INPUT_OFF == nMode)
{
/* Level controlled trigger is disabled */
}
else if (IS_LEVEL_CONTROLLED_TRIGGER_INPUT_ON == nMode)
{
/* Level controlled trigger is enabled */
}
}
/* Enable level controlled trigger */
nMode = IS_LEVEL_CONTROLLED_TRIGGER_INPUT_ON;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_LEVEL_CONTROLLED_TRIGGER_INPUT_MODE,
(void*)&nMode, sizeof(nMode));
if (IS_SUCCESS == nRet)
{
/* Level controlled trigger is enabled */
}
/* Get default setting */
nRet = is_DeviceFeature(hCam,
IS_DEVICE_FEATURE_CMD_GET_LEVEL_CONTROLLED_TRIGGER_INPUT_MODE_DEFAULT,
(void*)&nMode, sizeof(nMode));
if (IS_SUCCESS == nRet)
{
/* nMode returns the default setting */
}
4.3.15.4 Switching the Shutter 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 models: Toggle between shutter modes, see Basics: Shutter methods.
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_SHUTTER_MODE
Sets the shutter mode, see
DEVICE_FEATURE_MODE_CAPS