
AW00123402000
Image Acquisition Control
Basler ace USB 3.0
109
// Execute an acquisition start command to prepare for frame acquisition
camera.AcquisitionStart.Execute( );
// Frame acquisition will start when the externally generated
// frame start trigger signal (ExFSTrig signal)goes high
The following code snippet illustrates using the API to set the parameter values and execute the
commands related to hardware frame start triggering with the camera set for continuous frame
acquisition mode and the trigger mode for the frame burst start trigger set to off. We will use the
trigger width exposure mode with input line Line 1 as the trigger source and with rising edge
triggering:
// Set the acquisition mode to continuous frame
camera.AcquisitionMode.SetValue(AcquisitionMode_Continuous);
// Select the frame burst start trigger
camera.TriggerSelector.SetValue(TriggerSelector_FrameBurstStart);
// Set the mode for the selected trigger
camera.TriggerMode.SetValue(TriggerMode_Off);
// Disable the acquisition frame rate parameter (this will disable the camera’s
// internal frame rate control and allow you to control the frame rate with
// external frame start trigger signals)
camera.AcquisitionFrameRateEnable.SetValue(false);
// Select the frame start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_FrameStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
// Set the source for the selected trigger
camera.TriggerSource.SetValue ( TriggerSource_Line1 );
// Set the trigger activation mode to rising edge
camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set for the trigger width exposure mode
camera.ExposureMode.SetValue( ExposureMode_TriggerWidth );
// Set the exposure overlap time max- the shortest exposure time
// we plan to use is 1500 us
camera.ExposureOverlapTimeMax.SetValue( 1500 );
// Prepare for frame acquisition here
camera.AcquisitionStart.Execute( );
while ( ! finished )
{
// Frame acquisition will start each time the externally generated
// frame start trigger signal (ExFSTrig signal)goes high
// Retrieve the captured frames
}
camera.AcquisitionStop.Execute( );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and pylon Viewer, see Section 3.1 on
page 37
.
Summary of Contents for acA2000-165
Page 4: ......
Page 10: ...Table of Contents AW00123402000 vi Basler ace USB 3 0...
Page 44: ...Specifications Requirements and Precautions AW00123402000 34 Basler ace USB 3 0...
Page 46: ...Installation AW00123402000 36 Basler ace USB 3 0...
Page 50: ...Camera Drivers and Tools for Changing Camera Parameters AW00123402000 40 Basler ace USB 3 0...
Page 94: ...Physical Interface AW00123402000 84 Basler ace USB 3 0...
Page 262: ...Features AW00123402000 252 Basler ace USB 3 0...
Page 268: ...Revision History AW00123402000 258 Basler ace USB 3 0...