139 / 177
Copyright © 2018 - 2020 Toshiba Teli Corporation, All rights reserved.
https://www.toshiba-teli.co.jp/en/
DAA00195C
● Control with TeliCamSDK
GenICam function API
Control ALC parameters using GenICam API.
ALCPhotometricAreaSize/ALCExposureValue
Use ‘IFloat’ interface to control ALCPhotometricAreaSize and ALCExposureValue.
// GenICam node handle
CAM_NODE_HANDLE hSize = NULL;
CAM_NODE_HANDLE hEV = NULL;
// ALCPhotometricAreaSize = 25%
float64_t dSize = 25.0;
// ALCExposureValue = +1.0EV
float64_t dEV = 1.0;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “ALCPhotometricAreaSize”, &hSize);
Nd_GetNode(s_hCam, “ALCExposureValue”, &hEV);
// Set ALCPhotometricAreaSize
Nd_SetFloatValue(s_hCam, hSize, dSize);
// Set ALCExposureValue
Nd_SetFloatValue(s_hCam, hEV, dEV);
Please refer to [INode functions] and [IFloat node functions] in [TeliCamAPI Library manual] for more
detail.
Register access API
Control ALC parameters by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
ALCPhotometricAreaSize/ALCExposureValue
Write to ‘Value’ field of ‘ALCPhotometricAreaSize’ register.
Write to ‘Value’ field of ‘ALCExposureValue’ register.
// ALCPhotometricAreaSize = 25% (Raw value = 25)
uint32_t uiSizeRaw = 25;
// ALCExposureValue = +1.0EV (Raw value = 10)
int32_t iEVRaw = 10; // signed
// Set ALCPhotometricAreaSize
Cam_WriteReg(s_hCam, 0x21F37C, 1, &uiSizeRaw);
// Set ALCExposureValue
Cam_WriteReg(s_hCam, 0x2040DC, 1, &iEVRaw);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.