EasyManuals Logo

THORLABS DCU223x User Manual

THORLABS DCU223x
530 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 #287 background imageLoading...
Page #287 background image
© 2013 Thorlabs GmbH
4 Programming (SDK)
285
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));
// Set the flash to a constant low output
nMode = IO_FLASH_MODE_CONSTANT_LOW;
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_SET_MODE, (void*)&nMode, sizeof(nMode));
// Set the flash to a high active pulse for each image in the trigger mode
nMode = IO_FLASH_MODE_TRIGGER_HI_ACTIVE;
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_SET_MODE, (void*)&nMode, sizeof(nMode));
// Get the current flash mode
nRet = is_IO(m_hCam, IS_IO_CMD_FLASH_GET_MODE, (void*)&nMode, sizeof(nMode));

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

THORLABS DCU223x Specifications

General IconGeneral
BrandTHORLABS
ModelDCU223x
CategorySecurity Camera
LanguageEnglish

Related product manuals