119 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
● Control with TeliCamSDK
Camera feature API
Control Gain using dedicated API.
API name
Description
GetCamGainMinMax
Get minimum and maximum value
GetCamGain
Get current Gain value
SetCamGain
Set new Gain value
GetCamGainAuto
Get current GainAuto mode
SetCamGainAuto
Set new GainAuto mode
GainAuto parameter
Description
CAM_GAIN_AUTO_OFF
Off
CAM_GAIN_AUTO_AUTO
Adjust continuously
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control Gain using GenICam API.
Gain
Use ‘IFloat’ interface to control Gain.
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// Gain = 6.0dB
float64_t dGain = 6.0;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “Gain”, &hNode);
// Set Gain Value
Nd_SetFloatValue(s_hCam, hNode, dGain);
GainAuto
Use ‘IEnumertion’ interface to control GainAuto.
Integer value and string value of Enumeration are as follows.
Integer
String
Description
1
Off
Operates Manual mode.
2
Auto
Operates Auto mode.
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, “GainAuto”, &hNode);
// Set GainAuto = “Auto”
Nd_SetEnumStrValue(s_hCam, hNode, “Auto”);