05.11.2014 Views

Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec

Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec

Baumer-GAPI2 SDK Programmer's Guide - Site ftp Elvitec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. Introduction<br />

This programmer’s guide is addressed to programmers who need to integrate <strong>Baumer</strong><br />

cameras into their own software. It corresponds to the GenICam API of <strong>Baumer</strong>-<strong>GAPI2</strong><br />

and the use of Microsoft ® Visual Studio ® from version 2005 (C++) and version 2010 (C#).<br />

2. <strong>Baumer</strong>-<strong>GAPI2</strong><br />

<strong>Baumer</strong>-<strong>GAPI2</strong> is the abbreviation for <strong>Baumer</strong> “Generic Application Programming Interface”<br />

in version 2. With this API <strong>Baumer</strong> provides an interface for optimal integration and<br />

control of <strong>Baumer</strong> cameras.<br />

The fundamental basis for B<strong>GAPI2</strong> is the GenICam (Generic Interface for Cameras) standard<br />

and the employment of GenTL as standardized interface.<br />

B<strong>GAPI2</strong> provides interfaces to several programming languages as C++ and to the .NET<br />

Framework on Windows ® operating systems, which in turn allow the use of other languages<br />

such as C# or VB.NET.<br />

2.1 <strong>Baumer</strong>-<strong>GAPI2</strong> Stack Components<br />

2.1.1<br />

Hardware<br />

2.1.1.1 Gigabit Ethernet<br />

Working with <strong>Baumer</strong> Gigabit Ethernet cameras requires the installation of appropriate<br />

hardware – such as a NIC (Network Interface Card) on your PC.<br />

Notice<br />

For Gigabit Ethernet <strong>Baumer</strong> recommends the employment of NICs with an Intel ® chipset.<br />

The hardware is delivered with a hardware driver which is required in order to establish<br />

communications between hardware and software.<br />

Installation:<br />

For further information on<br />

installing the <strong>Baumer</strong>-GAPI<br />

<strong>SDK</strong> refer to the appropriate<br />

Installation <strong>Guide</strong> for<br />

your operating system and<br />

hardware interface.<br />

API:<br />

API stands for “Application<br />

Programming Interface”.<br />

An API is a software<br />

interface between two<br />

programs, usually between<br />

operating system and an<br />

application.<br />

GenICam:<br />

GenICam stands for<br />

Generic Interface for<br />

Cameras and is a generic<br />

programming interface<br />

for industrial cameras. It’s<br />

goal is to decouple industrial<br />

camera interfaces<br />

from the user application<br />

programming interface<br />

(API).<br />

2.1.2<br />

<strong>Baumer</strong> GenICam-API<br />

Programmer<br />

2.1.2.1<br />

Producer<br />

Within the GenICam Producer a complete camera system is mapped to the software. The<br />

Producer provides the 5 main classes that are used in any B<strong>GAPI2</strong> application.<br />

2.1.2.2<br />

Consumer<br />

CameraL nk®<br />

GigE Vis on®<br />

(GEV)<br />

USB3Vision<br />

▲ Figure 2<br />

The GenICam vision<br />

The consumer is the counterpart of the producer mentioned above. Here all the available<br />

producers are managed (loading, opening, closing).<br />

Furthermore the consumer provides all additional classes and enables the exception handling.<br />

2.1.2.3<br />

Framework<br />

A Framework represents a software platform, which provides a runtime environment, an<br />

API and several services to the programmer. It is required, for example, when programming<br />

in C# or VB.NET.<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!