Frequently Asked Question

Building and running GenTL API example for Acquisition mode
Last Updated 3 years ago


Building and Running GenTL API example on Windows OS:


Building an API example:

1. Locate the "API Samples" directory.
The "API Samples" directory can be easily found using the quick search, as shown in the image below.

image

2. Open an API example project GenTL_Example.vcxproj for Microsoft Visual Studio, provided in the "API Samples\Vision Point API\GenTL_Example" directory.

3. Choose a solution platform according to your operation system, as shown in the image below.
Please verify the selected platform is compatible with your OS.

image

3. In 'GenTL_Example.cpp' file 'CAMERA_XML_ACQUISITION_START_REG' value must be modified according to user's camera XML.
(default value is for Chameleon camera simulator).
4. Build a solution.

Running an API example:

1. Run the application.
2. Enter a device index.
3. Enter a command. The following table describes the commands options:

Command Description
? Help
[0-7] Select and open interface
l Close interface
s Start the frame acquisition
t Stop the frame acquisition
r Read camera register
w
Write camera register
x
Extract camera XML file
g Extract grabber XML file
e Exit
An operation example is shown in the image below.

image

Please Wait!

Please wait... it will take a second!