A
FlyCapture API Code Samples
A.1
Setting a GPIO Pin to Strobe Using the FlyCapture API
The following FlyCapture code sample uses the C++ interface to do the following:
Configures GPIO1 as the strobe output pin.
n
Enables strobe output.
n
Specifies an active high (rising edge) strobe signal.
n
Specifies that the strobe signal begin 1 ms after the shutter opens.
n
Specifies the duration of the strobe as 1.5 ms.
n
Assuming a Camera object cam:
StrobeControl mStrobe;
mStrobe.source = 1;
mStrobe.onOff = true;
mStrobe.polarity = 1;
mStrobe.delay = 1.0f;
mStrobe.duration = 1.5f
cam.SetStrobe(&mStrobe);
A.2
Setting a Standard Video Mode, Format and Frame Rate
Using the FlyCapture API
The following FlyCapture code snippet sets the camera to: 640x480 Y8 at 60 FPS.
Camera.SetVideoModeandFrameRate( VIDEOMODE_640x480Y8 , FRAMERATE_60 );
A.3
Asynchronous Hardware Triggering Using the FlyCapture
API
The following FlyCapture code sample uses the C++ interface to do the following:
Sets the trigger mode to Trigger Mode 0.
n
Configures GPIO0 as the trigger input source.
n
Enables triggered acquisition.
n
Specifies the trigger signal polarity as an active high (rising edge) signal.
n
Assuming a Camera object cam:
2/10/2017
©2013-2017
FLIR Integrated Imaging
Solutions Inc. All rights reserved.
®
Grasshopper
3 PGE Technical Reference
A FlyCapture API Code Samples
87
Need help?
Do you have a question about the GRASSHOPPER 3 Series and is the answer not in the manual?