Guppy PRO Technical Manual
V4.1.2
185
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 Sensor
if(Result==FCE_NOERROR)
Result=Camera.StartDevice();
…
Ma
xR
esolution
TimeB
ase
Ext
d
Shut
te
r
Te
st
im
ag
e
Ve
rs
io
n
In
fo
Look
-u
p t
ables
Tr
ig
ge
r D
el
ay
Mis
c. f
ea
tur
es
Bit
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
1
1
1
1
1
0
1
0
1
0
0
0
0
0
1
1
SoftR
eset
UserP
rofil
es
GP_Buf
fe
r
Bit
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
0
0
0
0
1
0
1
1
0
0
0
0
0
1
1
Table 103: Configuring the camera: registers