![Toshiba teli BG Series Instruction Manual Download Page 66](http://html.mh-extra.com/html/toshiba-teli/bg-series/bg-series_instruction-manual_1138530066.webp)
65 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
GenICam function API
Control TestPattern using GenICam API.
TestPattern
Select a test pattern.
Integer value and string value of Enumeration are as follows.
Integer
String
Function
0 (*)
Off
Test pattern disable(Normal data output)
1
Black
All pixel = 0 LSB
2
White
All pixel = 255 @Mono8
3
GreyA
All pixel = 170 @Mono8
4
GreyB
All pixel = 85 @Mono8
5
GreyHorizontalRamp
Horizontal Ramp
6
GreyScale
Grey scale (Mono model only)
7
ColorBar
Color bar (Color model only)
8
GreyVerticalRamp
Vertical Ramp
* initial factory setting
// GenICam node handle
CAM_NODE_HANDLE hNode = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, "TestPattern", & hNode);
// 1.Select a test pattern.
Nd_SetEnumStrValue(s_hCam, hNode, "GreyHorizontalRamp");
Please refer to [INode functions], [IEnumeration node functions] in [TeliCamAPI Library manual] for
more detail.
Register access API
Control TestPattern by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
TestPattern
Write to ‘Value’ field of ‘TestPattern’ register.
uint32_t dat = 5; // Horizontal Ramp
// 1.Select a test pattern.
Cam_WriteReg(s_hCam, 0x21F13C, 1, &dat);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.