Configuration of the camera
STINGRAY Technical Manual
V2.2.0
222
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();
…