Sample program, Example firegrab – ALLIED Vision Technologies Guppy PRO F-503 User Manual

Page 208

Advertising
background image

Configuration of the camera

Guppy PRO Technical Manual V4.0.0

206

Sample program

The following sample code in C/C++ shows how the register is set for video
mode/format, trigger mode etc. using the FireGrab and FireStack API.

Example FireGrab


// Set Videoformat
if(Result==FCE_NOERROR)
Result= Camera.SetParameter(FGP_IMAGEFORMAT,MAKEIMAGEFORMAT(RES_640_480,
CM_Y8, FR_15));

// Set external Trigger
if(Result==FCE_NOERROR)
Result= Camera.SetParameter(FGP_TRIGGER,MAKETRIGGER(1,0,0,0,0));

// Start DMA logic
if(Result==FCE_NOERROR)
Result=Camera.OpenCapture();

// Start image device
if(Result==FCE_NOERROR)
Result=Camera.StartDevice();

Advertising