TriggerMode mTrigger;
mTrigger.mode = 0;
mTrigger.source = 0;
mTrigger.parameter = 0;
mTrigger.onOff = true;
mTrigger.polarity = 1;
cam.SetTriggerMode(&mTrigger);
A.4
Setting Brightness Using the FlyCapture API
The following FlyCapture code snippet adjusts brightness to 0.5% using the C++ interface. The snippet assumes a
Camera object cam.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = BRIGHTNESS;
//Ensure the property is set up to use absolute value control.
prop.absControl = true;
//Set the absolute value of brightness to 0.5%.
prop.absValue = 0.5;
//Set the property.
error = cam.SetProperty( &prop );
A.5
Setting Shutter Using the FlyCapture API
The following FlyCapture code snippet adjusts the shutter speed to 20 ms using the C++ interface. The snippet
assumes a Camera object cam.
//Declare a Property struct.
Property prop;
//Define the property to adjust.
prop.type = SHUTTER;
//Ensure the property is on.
2/10/2017
©2013-2017
FLIR Integrated Imaging
Solutions Inc. All rights reserved.
®
Grasshopper
3 PGE Technical Reference
A FlyCapture API Code Samples
88
Need help?
Do you have a question about the GRASSHOPPER 3 Series and is the answer not in the manual?