111 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
// 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”);
Please refer to [INode functions], [IFloat node functions] and [IEnumeration node functions] in
[TeliCamAPI Library manual] for more detail.
Register access API
Control Gain by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
Gain
Write to ‘Value’ field of ‘Gain’ register.
// Gain = 6.0dB (Raw value = 60)
uint32_t uiGainRaw = 60;
// Set Gain Value
Cam_WriteReg(s_hCam, 0x20407C, 1, &uiGainRaw);
GainAuto
Write to ‘Control’ field of ‘Gain’ register.
// GainAuto = “Auto”
uint32_t uiGainAuto = 2;
// Set GainAuto = “Auto”
Cam_WriteReg(s_hCam, 0x204068, 1, &uiGainAuto);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum / Maximum Value
Gain
Raw Value
Absolute (Float) Value
Minimum
0
0.00 [dB]
Maximum
240
24.00 [dB]
Initial Value
0
0.00 [dB]
Formula
Absolute Value [dB] = Raw Value / 10
● Note
- In GainAuto mode, current Gain will be reflected to Gain value register.