170 / 179
Copyright © 2017 TOSHIBA TELI CORPORATION, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4267042B
// 1.Set the camera parameters and save them to UserSet.
...
// GenICam node handle
CAM_NODE_HANDLE hIndex = NULL;
CAM_NODE_HANDLE hEntry = NULL;
CAM_NODE_HANDLE hTerminateAt = NULL;
CAM_NODE_HANDLE hEnable = NULL;
// Retrieve GenICam node.
Nd_GetNode(s_hCam, "SequentialShutterIndex", &hIndex);
Nd_GetNode(s_hCam, "SequentialShutterEntry", &hEntry);
Nd_GetNode(s_hCam, "SequentialShutterTerminateAt", &hTerminateAt);
Nd_GetNode(s_hCam, "SequentialShutterEnable", &hEnable);
int64_t
entry[] = {1,4,2};
// Sequence = {UserSet1,UserSet4,UserSet2}
int64_t
index;
for(index=0; index<3; index++)
{
// 2.Set SequentialShutterIndex and SequentialShutterEntry.
Nd_SetIntValue(s_hCam, hIndex, index+1); // 1 origin
Nd_SetIntValue(s_hCam, hEntry, entry[index]);
}
// 3.Set SequentialShutterTerminateAt.
Nd_SetIntValue(s_hCam, hTerminateAt, index); // 3 UserSet will be repeated.
// 4.Set the activation of SequentialShutter function by 'SequentialShutterEnable'.
Nd_SetEnumStrValue(s_hCam, hEnable, "On");
Please refer to [INode functions], [IInteger node functions] and [IEnumeration node functions] in
[TeliCamAPI Library manual] for more detail.
Register access API
Control SequentialShutter by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
1. Set the camera parameters and save them to UserSet. Repeat this as you required.
2. Sets the UserSet number to register to the sequence.
Write to ‘Value[0]’ to ‘Value[15]’ of ‘SequentialShutterSequenceTable’.
The index of ‘Value’ register means sequence index. (0 origin)
3. Set the number of Index to repeat the sequence.
Write to ‘Value’ field of ’SequentialShutterTerminateAt’.
4. Set the activation of SequentialShutter function.
Write to ‘Value’ field of ’SequentialShutterEnable’ register to activate LUT function.