Sample program, Example firegrab – ALLIED Vision Technologies Stingray F-504 User Manual
Page 263

Configuration of the camera
STINGRAY Technical Manual V4.4.4
261
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();
…
This manual is related to the following products: