EasyManua.ls Logo

Point Grey Flea3 GigE - A Flycapture API Code Samples; Setting a GPIO Pin to Strobe Using the Flycapture API; Setting a Standard Video Mode, Format and Frame Rate Using the Flycapture API; Asynchronous Hardware Triggering Using the Flycapture API

Point Grey Flea3 GigE
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Point Grey Flea3 GigE Technical Reference A FlyCapture API Code Samples
A FlyCapture API Code Samples
A.1 Setting a GPIOPin to Strobe Using the FlyCapture API
The following FlyCapture code sample uses the C++ interface to do the following:
n 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.
Assuming a Camera object cam:
StrobeControl mStrobe;
mStrobe.source = 1;
mStrobe.parameter = 0;
mStrobe.onOff = true;
mStrobe.polarity = 1;
mStrobe.delay = 1.0f;
mStrobe.duration = 1.5f
cam.SetStrobeControl(&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:
n 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.
Assuming a Camera object cam:
TriggerMode mTrigger;
mTrigger.mode = 0;
mTrigger.source = 0;
mTrigger.parameter = 0;
mTrigger.onOff = true;
mTrigger.polarity = 1;
cam.SetTriggerMode(&mTrigger);
Revised 10/29/2013
Copyright ©2010-2013 Point Grey Research Inc.
88

Table of Contents

Related product manuals