EasyManuals Logo

THORLABS DCU22 Series Description And Sdk Manual

THORLABS DCU22 Series
513 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #296 background imageLoading...
Page #296 background image
© 2016 Thorlabs Scientific Imaging294
DCx Camera Functional Description and SDK Manual
Example 5
INT nRet = IS_SUCCESS;
IO_FLASH_PARAMS flashParams;
// Get the minimum values for flash delay and flash duration
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_PARAMS_MIN,
(void*)&flashParams, sizeof(flashParams));
if (nRet == IS_SUCCESS)
{
INT nFlashDelayMin = flashParams.s32Delay;
UINT nFlashDurationMin = flashParams.u32Duration;
}
// Get the maximum values for flash delay and flash duration
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_PARAMS_MAX,
(void*)&flashParams, sizeof(flashParams));
if (nRet == IS_SUCCESS)
{
INT nFlashDelayMax = flashParams.s32Delay;
UINT nFlashDurationMax = flashParams.u32Duration;
}
// Get the increment for flash delay and flash duration
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_PARAMS_INC,
(void*)&flashParams, sizeof(flashParams));
if (nRet == IS_SUCCESS)
{
UINT nFlashDelayInc = flashParams.s32Delay;
UINT nFlashDurationInc = flashParams.u32Duration;
}
// Get the current values for flash delay and flash duration
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_PARAMS,
(void*)&flashParams, sizeof(flashParams));
if (nRet == IS_SUCCESS)
{
INT nCurrentFlashDelay = flashParams.s32Delay;
UINT nCurrentFlashDuration = flashParams.u32Duration;
}
// Set the current values for flash delay and flash duration
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_SET_PARAMS,
(void*)&flashParams, sizeof(flashParams));
Example 6
INT nRet = IS_SUCCESS;
// Get all GPIOs that can be used as flash output
UINT nGPIOs_Flash = 0;
INT nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_SUPPORTED_GPIOS,
(void*)&nGPIOs_Flash, sizeof(nGPIOs_Flash));
// Get all GPIOs that can be used for the PWM
UINT nGPIOs_PWM = 0;
INT nRet = is_IO(m_hCam, IS_IO_CMD_PWM_GET_SUPPORTED_GPIOS,
(void*)&nGPIOs_PWM, sizeof(nGPIOs_PWM));
Example 7
INT nRet = IS_SUCCESS;
// Disable flash
UINT nMode = IO_FLASH_MODE_OFF;
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_SET_MODE, (void*)&nMode, sizeof(nMode));

Table of Contents

Other manuals for THORLABS DCU22 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the THORLABS DCU22 Series and is the answer not in the manual?

THORLABS DCU22 Series Specifications

General IconGeneral
BrandTHORLABS
ModelDCU22 Series
CategorySecurity Camera
LanguageEnglish

Related product manuals