158 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
● Control with TeliCamSDK
Camera feature API
Control ExposureTime using dedicated API.
API name
Description
GetCamChunkModeActive
Get current statusof chunk data output mode
SetCamChunkModeActive
Set chunk data output mode
Please refer to [Controlling camera feature functions] in [TeliCamAPI Library manual] for more detail.
GenICam function API
Control Chunk using GenICam API.
Chunk
1. Close image stream.
2. Sets the activation of Chunk feature by ‘ChunkModeActive’.
3. Sets the activation of Chunk data by ‘ChunkSelector’ and ‘ChunkEnable’.
Most of the Chunk data has been fixed to output.
4. Sets the user string to ‘ChunkUserAreaTable’. (optional)
5. Open image stream.
6. Capture image stream.
TeliCamAPI provides streaming functions including command handling and buffer handling to
capture image stream simply.
Please refer to [Camera streaming functions] in [TeliCamAPI Library manual]
and [GrabStreamSimple] sample code in your TeliCamSDK install folder.
7. Extract Chunk data using GenICam API.
7-1. Allocate memory by ‘Chunk_AttachedBuffer’ .
7-2. Read Chunk data.
// GenICam node handle
CAM_NODE_HANDLE hMode = NULL;
CAM_NODE_HANDLE hSelector = NULL;
CAM_NODE_HANDLE hEnable = NULL;
CAM_NODE_HANDLE hFrameID = NULL;
CAM_NODE_HANDLE hExposureTime = NULL;
CAM_NODE_HANDLE hUserAreaTable = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, "ChunkModeActive", &hMode);
Nd_GetNode(s_hCam, "ChunkSelector", &hSelector);
Nd_GetNode(s_hCam, "ChunkEnable", &hEnable);
Nd_GetNode(s_hCam, "ChunkFrameID", & hFrameID);
Nd_GetNode(s_hCam, "ChunkExposureTime", &hExposureTime);
Nd_GetNode(s_hCam, "ChunkUserAreaTable", &hUserAreaTable);
// 2.Activate ChunkModeActive
Nd_SetBoolValue(s_hCam, hMode, true);
//3.Enable ChunkSelector
Nd_SetEnumStrValue(s_hCam, hSelector, "ExposureTime");
Nd_SetBoolValue(s_hCam, hEnable, true);
Nd_SetEnumStrValue(s_hCam, hSelector, "
UserArea");
Nd_SetBoolValue(s_hCam, hEnable, true);