Image Acquisition Control AW00123409000
114 Basler ace USB 3.0
Setting the Acquisition Mode and Issuing Start/Stop Commands
You can set the Acquisition Mode parameter value and you can execute Acquisition Start or
Acquisition Stop commands from within your application software by using the Basler pylon API.
The code snippet below illustrates using the API to set the Acquisition Mode parameter value and
to execute an Acquisition Start command, where Line 1 is taken as an example. Note that the
snippet also illustrates setting several parameters regarding frame triggering. These parameters
are discussed later in this chapter.
camera.AcquisitionMode.SetValue( AcquisitionMode_SingleFrame );
camera.TriggerSelector.SetValue( TriggerSelector_FrameStart );
camera.TriggerMode.SetValue( TriggerMode_On );
camera.TriggerSource.SetValue ( TriggerSource_Line1 );
camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
camera.ExposureMode.SetValue( ExposureMode_Timed );
camera.ExposureTime.SetValue( 3000.0 );
camera.AcquisitionStart.Execute( );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 61.
When the camera's acquisition mode is set to Single Frame, the maximum
possible acquisition frame rate for a given ROI cannot be achieved. This is true
because the camera performs a complete internal setup cycle for each single
frame and because it cannot be operated with "overlapped" acquisition.
To achieve the maximum possible acquisition frame rate for a given ROI, set the
acquisition mode to Continuous and use "overlapped" acquisition. If available,
also use the fast sensor readout mode.
For more information about overlapped acquisition, see Section 6.4.3.2 on
page 129, about the fast sensor readout mode see Section 6.6.1.1 on page 144,
and about default resolution, see Section 1.2 on page 2.