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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Table of Contents<br />
1. Introduction .............................................................................................................. 5<br />
2. <strong>Baumer</strong>-<strong>GAPI2</strong> .......................................................................................................... 5<br />
2.1 <strong>Baumer</strong>-<strong>GAPI2</strong> Stack Components ........................................................................ 5<br />
2.1.1 Hardware ......................................................................................................... 5<br />
2.1.2 <strong>Baumer</strong> GenICam-API...................................................................................... 5<br />
2.2 Software Components ............................................................................................ 6<br />
2.2.1 <strong>Baumer</strong>-<strong>GAPI2</strong> Modules .................................................................................. 6<br />
2.3 Gerneral System Requirements .............................................................................. 6<br />
3. Central Idea Behind B<strong>GAPI2</strong> ................................................................................... 8<br />
3.1 Interface Classes ................................................................................................... 9<br />
3.1.1 INode, NodeMap, Node .................................................................................... 9<br />
3.1.2 EventControl ................................................................................................... 12<br />
3.2 Main Classes ........................................................................................................ 14<br />
3.2.1 System............................................................................................................ 14<br />
3.2.2 Interface.......................................................................................................... 15<br />
3.2.3 Device............................................................................................................. 15<br />
3.2.4 DataStream .................................................................................................... 16<br />
3.2.5 Buffer .............................................................................................................. 17<br />
3.3 List Classes ........................................................................................................... 18<br />
3.3.1 SystemList ...................................................................................................... 19<br />
3.3.2 InterfaceList .................................................................................................... 19<br />
3.3.3 DeviceList ....................................................................................................... 19<br />
3.3.4 DataStreamList ............................................................................................... 19<br />
3.3.5 BufferList ........................................................................................................ 20<br />
3.4 Additional Classes ................................................................................................. 22<br />
3.4.1 Image.............................................................................................................. 22<br />
3.4.2 Image Processor ............................................................................................ 23<br />
3.4.3 Trace............................................................................................................... 24<br />
3.5 IException ............................................................................................................ 25<br />
4. Programming Basics in <strong>Baumer</strong>-<strong>GAPI2</strong> ............................................................... 26<br />
4.1 Setting System variables ...................................................................................... 27<br />
4.2 Implementation ..................................................................................................... 28<br />
4.2.1 Implementation C++ ....................................................................................... 28<br />
4.2.2 Implementation in C# ..................................................................................... 30<br />
5. Application development with <strong>Baumer</strong>-GAPI ..................................................... 33<br />
5.1 First steps ............................................................................................................. 33<br />
5.1.1 Preparation ..................................................................................................... 34<br />
5.1.2 SystemList ...................................................................................................... 35<br />
5.1.3 Open a System ............................................................................................... 35<br />
5.1.4 Get the InterfaceList and fill it ......................................................................... 36<br />
5.1.5 Open an Interface ........................................................................................... 36<br />
5.1.6 Get the DeviceList and fill it ............................................................................ 36<br />
5.1.7 Open a Device ................................................................................................ 37<br />
5.1.8 Get DataStreamList and fill it .......................................................................... 37<br />
5.1.9 Open a DataStream ....................................................................................... 38<br />
5.1.10 Create the BufferList and allocate Buffer memory ........................................ 38<br />
5.1.11 Allocate Image Buffer to the DataStream ..................................................... 39<br />
5.1.12 Start Camera and fill the Image Buffer ......................................................... 40<br />
5.1.13 Releasing the resources ............................................................................... 41<br />
3