User`s manual

Acquisition Control AW00049313000
78 Basler runner
Setting the Acquisition Mode and Issuing Start/Stop Commands
You can set the Acquisition Mode parameter value and you can issue Acquisition Start or
Acquisition Stop commands from within your application software by using the pylon API. The code
snippet below illustrates using the API to set the Acquisition Mode parameter value and to issue an
Acquisition Start command. Note that the snippet also illustrates setting several parameters
regarding frame and line 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.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
Camera.TriggerSelector.SetValue( TriggerSelector_LineStart );
Camera.TriggerMode.SetValue( TriggerMode_On );
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
Camera.ExposureMode.SetValue( ExposureMode_Timed );
Camera.ExposureTimeAbs.SetValue( 55 );
Camera.AcquisitionStart.Execute( );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 17.
8.2.2 Acquisition Start Triggering
The acquisition start trigger is used in conjunction with the frame start trigger to control the
acquisition of frames. In essence, the acquisition start trigger is used as an enabler for the frame
start trigger.
When the acquisition start trigger is enabled, the camera’s initial acquisition status is "waiting for
acquisition start trigger". When the camera is in this acquisition status, it will ignore any frame start
trigger signals it receives. If an acquisition start trigger signal is applied to the camera, it will exit the
"waiting for acquisition start trigger" acquisition status and enter the "waiting for frame start trigger"
acquisition status. If a frame start trigger signal is applied to the camera, it will exit the "waiting for
frame start trigger" acquisition status and enter the "waiting for line start trigger" acquisition status.
In this acquisition status, the camera can react to line start trigger signals and will begin to expose
a line each time a proper line start trigger signal is applied.
Note
When the camera's acquisition mode is set to single frame, the maximum
possible acquisition frame rate for a given AOI cannot be achieved. This is true
because the camera performs a complete internal setup cycle for each single
frame.