127 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
● Control with TeliCamSDK
GenICam function API
Control ALC parameters using GenICam API.
ALCPhotometricAreaSize/ALCExposureValue/ALCExposureTimeMin/ALCExposureTimeMax/
ALCGainMin/ALCGainMax/ALCThrottle
Use ‘IFloat’ interface to control ALC parameter.
// GenICam node handle
CAM_NODE_HANDLE hSize = NULL;
CAM_NODE_HANDLE hEV = NULL;
CAM_NODE_HANDLE hExpMin = NULL;
CAM_NODE_HANDLE hExpMax = NULL;
CAM_NODE_HANDLE hGainMin = NULL;
CAM_NODE_HANDLE hGainMax = NULL;
CAM_NODE_HANDLE hThrottle = NULL;
// ALCPhotometricAreaSize = 25%
float64_t dSize = 25.0;
// ALCExposureValue = +1.0EV
float64_t dEV = 1.0;
// ALCExposureTimeMin = 1000μs
float64_t dExpMin = 1000;
// ALCExposureTimeMax = 2000000μs
float64_t dExpMax = 2000000;
// ALCGainMin = 4.00dB
float64_t dGainMin = 4.00;
// ALCGainMax = 20.00dB
float64_t dGainMax = 20.00;
// ALCThrottle = 50.00%
float64_t dThrottle = 50.00;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “ALCPhotometricAreaSize”, &hSize);
Nd_GetNode(s_hCam, “ALCExposureValue”, &hEV);
Nd_GetNode(s_hCam, “ALCExposureTimeMin”, &hExpMin);
Nd_GetNode(s_hCam, “ALCExposureTimeMax”, &hExpMax);
Nd_GetNode(s_hCam, “ALCGainMin”, &hGainMin);
Nd_GetNode(s_hCam, “ALCGainMax”, &hGainMax);
Nd_GetNode(s_hCam, “ALCThrottle”, &hThrottle);
// Set ALCPhotometricAreaSize
Nd_SetFloatValue(s_hCam, hSize, dSize);
// Set ALCExposureValue
Nd_SetFloatValue(s_hCam, hEV, dEV);
// Set ALCExposureTimeMin
Nd_SetFloatValue(s_hCam, hExpMin, dExpMin);
// Set ALCExposureTimeMax
Nd_SetFloatValue(s_hCam, hExpMax, dExpMax);
// Set ALCGainMin
Nd_SetFloatValue(s_hCam, hGainMin, dGainMin);
// Set ALCGainMax
Nd_SetFloatValue(s_hCam, hGainMax, dGainMax);
// Set ALCThrottle
Nd_SetFloatValue(s_hCam, hThrottle, dThrottle);
Please refer to [INode functions] and [IFloat node functions] in [TeliCamAPI Library manual] for more
detail.