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 #294 background imageLoading...
Page #294 background image
© 2016 Thorlabs Scientific Imaging292
DCx Camera Functional Description and SDK Manual
Example 1
INT nRet = IS_SUCCESS;
UINT nSupportedIOs = 0;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_GET_SUPPORTED,
(void*)&nSupportedIOs, sizeof(nSupportedIOs));
UINT nSupportedInputs = 0;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_GET_SUPPORTED_INPUTS,
(void*)&nSupportedInputs, sizeof(nSupportedInputs));
UINT nSupportedOutputs = 0;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_GET_SUPPORTED_OUTPUTS,
(void*)&nSupportedOutputs, sizeof(nSupportedOutputs));
Example 2
INT nRet = IS_SUCCESS;
UINT nDirection = 0;
// Get direction
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_GET_DIRECTION,
(void*)&nDirection, sizeof(nDirection));
// Set GPIO1 and GPIO2 to output
nDirection = IO_GPIO_1 | IO_GPIO_2;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_SET_DIRECTION,
(void*)&nDirection, sizeof(nDirection));
// Get the current state of the GPIOs
UINT nCurrentState = 0;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_GET_STATE,
(void*)&nCurrentState, sizeof(nCurrentState));
// Set GPIO1 to high, GPIO2 to low
nCurrentState = IO_GPIO_1;
nRet = is_IO(m_hCam, IS_IO_CMD_GPIOS_SET_STATE,
(void*)&nCurrentState, sizeof(nCurrentState));
Example 3
INT nRet = IS_SUCCESS;
UINT nLED = 0;
// Get the current state of the LED
nCurrentState = 0;
nRet = is_IO(m_hCam, IS_IO_CMD_LED_GET_STATE,
(void*)&nCurrentState, sizeof(nCurrentState));
// Set LED to state 1 (red)
nCurrentState = IO_LED_STATE_1;
nRet = is_IO(m_hCam, IS_IO_CMD_LED_SET_STATE,
(void*)&nCurrentState, sizeof(nCurrentState));
// Toggle LED state to green
nRet = is_IO(m_hCam, IS_IO_CMD_LED_TOGGLE_STATE, NULL, 0);
Example 4
INT nRet = IS_SUCCESS;
// Read the global flash params
IO_FLASH_PARAMS flashParams;

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