Toshiba teli BU1207MG Instruction Manual page 149

Cmos camera
Table of Contents

Advertisement

// 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.
 Chunk
1. Close image stream.
2. Sets the activation of Chunk feature.
Write to 'Value' field of 'ChunkModeActive' register.
3. Sets the activation of Chunk data.
Write to 'Value' field of 'ChunkEnableOfVendorSpecific', 'ChunkEnableOfCat4',
'ChunkEnableOfCat5' and 'ChunkEnableOfCat9' register.
4. Sets the user string. (optional)
Write to 'Value[0]' to 'Value[last]' field of 'ChunkUserArea' register.
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.
Copyright © 2020 Toshiba Teli Corporation, All rights reserved.
API name
Cam_ReadReg
Cam_WriteReg
148 / 161
Description
Read register value
Write register value
http://www.toshiba-teli.co.jp/en/index.htm
D4279014C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Bu seriesBu1207mcgBu1207mcf

Table of Contents