Example: Setting A Gpio Pin To Strobe (Using The Flycapture Api) - Point Grey Flea3 FL3-U3 Technical Reference Manual

Usb 3.0 digital camera
Table of Contents

Advertisement

Point Grey Flea3 USB 3.0 Technical Reference
For example, to achieve a 500us delay and 1ms duration we calculate:
To finish configuring GPIO2 to output a strobe pulse of 500us delay from the start of integration and 1ms high duration
(high active output), we make the following final register write:
4.3.3
Example: Setting a GPIO Pin to Strobe (Using the FlyCapture API)
The following FlyCapture 2.x 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.parameter = 0;
mStrobe.onOff = true;
mStrobe.polarity = 1;
mStrobe.delay = 1.0f;
mStrobe.duration = 1.5f
cam.SetStrobeControl(&mStrobe);
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
Duration_Value/Delay_Value Real Time (ms)
0x600
0x800
0x900
0xA00
0xB00
0xC00
0xD00
0xE00
0xF00
0xFFF
Delay_Value = 0.0005s * 1024000Hz = 512 = 0x200
Duration_Value = 0.001s * 1024000Hz = 1024 = 0x400
0x1508 = 0x8320 0400
4 Input/Output Control
2
4
6
8
12
16
24
32
48
63.93
46

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents