Point Grey Flea3 USB 3.0 Technical Reference 4 Input/Output Control
Duration_Value/Delay_Value Real Time (ms)
0x600 2
0x800 4
0x900 6
0xA00 8
0xB00 12
0xC00 16
0xD00 24
0xE00 32
0xF00 48
0xFFF 63.93
For example, to achieve a 500us delay and 1ms duration we calculate:
Delay_Value = 0.0005s * 1024000Hz = 512 = 0x200
Duration_Value = 0.001s * 1024000Hz = 1024 = 0x400
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:
0x1508 = 0x8320 0400
4.3.3 Example: Setting a GPIOPin to Strobe (Using the FlyCapture API)
The following FlyCapture 2.x 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);
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
46