Instruction manual
/* Initialize HW and allocate frame buffer */
framearray =(BYTE**)el_InitHW( BoardId, 0, SizeX, SizeY, NumberOfFrames, 0, 0);
/* optional change of hardware parameters come here */
el_Acquire( BoardId, EL_SNAP); /* real-time acquisition of 100 frames */
el_WaitAcq( BoardId); /* wait until sequence has been acquired */
/* optional display the sequence */
/* image processing comes here */
el_Close(BoardId, 0); /* clean up library structures, close HW */
5.1.14. Calling the library function from languages other than C/C++
All library functions (e.g. el_OpenHW) are exported wiht _cdecl calling conventions. To be able to use the
library from other languages (e.g. Visual Basic) all routines are exported as _stdcall too. These _stdcall
version are named the same, but have a second _. The _stdcall version of el_OpenHW is el__OpenHW.
Usage under Visual Basic
To use the dll functions under Visual Basic you must declare them. Declare Function el__OpenHW Lib
"eleyeX16" (ByVal HexSwitch As Long, ByVal Mode As Long) As Long
eleyeX16 must be replace be the name of the DLL.
Usage under Pascal
For Pascal or Delphi you can use the _cdecl version as well. Declare the routines in a seperate unit.
Example
Unit grabber_routines;
interface
{ The "cdecl" Version is used. }
function el_OpenHW(HexSwitch, Mode: longint):longint; cdecl;
...
implementation
const LIBNAME = 'eleyex16.dll';
function el_OpenHW; cdecl; external LIBNAME;
...
begin
end.
eleyex16.dll denotes the name of the dll.
5.1.15. Virtual Grabbers
The use Virtuals Grabbers is a concept to handle several independent units on one piece of hardware. So
it is possibe to control a colour and a black and white aquisition unit as two grabbers.
Virtual grabbers are opened using el_OpenHWEx the hex switch selects the board and the SubId
parameter is used to select one of the virtual grabber one the board. el_OpenHW can still be used but it
51