153 / 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 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);
// 4.Set the user string
Nd_SetStrValue(s_hCam, hUserAreaTable, "Test");
// 5.6.Open and capture image
Strm_ReadCurrentImage(hStrm, pvPayloadBuf, &uiPyldSize, &sImageInfo);
// 7-1. Attach Buffer
Chunk_AttachBuffer(s_hStrm, pvPayloadBuf, PyldSize)
// 7-2.Get FrameID of Chunk data.
int64_t fid= 0;
Nd_GetIntValue(s_hCam, hFID, &fid);
// 7-2.Get Exposure Time of Chunk data.
float64_t exptime = 0;
Nd_GetFloatValue(s_hCam, hExposureTime, &exptime);
// 7-2.Get User Area data of Chunk data.
char userarea[256];
Uint32_t uiSize = 256;
Nd_GetStrValue(s_hCam, hUserAreaTable, &userarea, &uiSize);
Please refer to [INode functions], [IInteger node functions], [IBoolean node functions] and [IEnumeration
node functions] in [TeliCamAPI Library manual] for more detail.
Register access API
Control Chunk by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value