THORLABS DCU223x Operation Manual And Sdk page 287

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

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
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
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
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
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));
© 2013 Thorlabs GmbH
= flashParams.s32Delay;
= flashParams.s32Delay;
= flashParams.s32Delay;
= flashParams.s32Delay;
4 Programming (SDK)
285

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents