Image Acquisition; Software Trigger Mode - Advantech VPS-3100 User Manual

Table of Contents

Advertisement

5.2.1.1
Camera Configuration
There are two methods for configuring the camera:
Using predefined camera parameters
For predefined camera parameters, you can configure them using the CamNavi
API.
Using customized camera parameters
For customized parameters, the CamNavi API requires the parameter name,
which is defined in the camera profile (XML file).
The following example demonstrates the camera configuration process.
//Get the predefined image width
IIntNode *pWidth = pCamConfigure->GetWidth(); int64_t iValue =
pWidth->GetValue();
iValue = pWidth->GetMax(); iValue = pWidth->GetMin();
//Get the customized "TestImageSelector" control node from camera
profile
IEnumNode *pTestImage = pCamConfigure->GetEnumNode("TestImageSelec-
tor");
pTestImage->SetValue(1);
5.3

Image Acquisition

There are three ways to trigger a camera for image acquisition: software trigger,
hardware trigger, and trigger-over-Ethernet (ToE). The following sections detail about
how to use each acquisition method.
5.3.1

Software Trigger Mode

In software trigger mode, you can use the software API to control the image acquisi-
tion process, and the camera will not acquire frames unless a software acquisition
command is executed. The operating procedure is as follows:
1.
Set the camera to software trigger mode.
//Get the node of the trigger mode and set it to "ON"
//The node name and setting value depends on the camera type
IEnumNode *pTriggerMode = pCamConfigure->GetEnumNode("TriggerMode");
if (!pTriggerMode) { printf("ERROR: Invalid TriggerMode node!!");
return 0; }
pTriggerMode->SetValue(1);
//Get the node of the trigger source and set it to "Software"
//The node name and setting value depends on the camera type
IEnumNode *pTriggerSource = pCamConfigure->GetEnumNode("Trigger-
Source");
if (!pTriggerSource) { printf("ERROR: Invalid TriggerSource node
!!"); return 0; }
pTriggerSource->SetValue(0);
VPS-3100 User Manual
50

Advertisement

Table of Contents
loading

Table of Contents