GenTL acquisition

Last modified by Lev Andronov on 2024/11/03 13:47

This is a quick start guide for building GenTL image acquisiton API sample. 

Build an API sample

on Ubuntu

  1. Open the terminal and naviate to  /GenTL_Example in /opt/KAYA_Instruments/Examples/Vision Point API directory
  2. Type command 'make' and ensure the 'GenTL_Example' executable file was created in the same directory. 
    ubuntu_building_api_example.png

on Windows

  1. Open Microsoft Visual Studio project 'GenTL_Example.vcxproj'. The API samples directory can be easily found using the quick search, as shown in the image below.
    start.png
  2. 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.
    vs.png
  3. Build a solution

Run an API sample

  1. Run the application.
  2. Enter a device Index.
  3. Enter a command. The following table describes the commands options:
    • [0-7] — Device selection
    • 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 example of this operation is shown in the image below.

gentl.png

KAYA Instruments © 2024. All Rights Reserved.