Acquiring A Single Image By Applying One Software Trigger - Basler Pioneer User Manual

Gige vision cameras
Table of Contents

Advertisement

You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 2.2 on
page
40.
10.2.2 Acquiring a Single Image by Applying
One Software Trigger
You can set the camera to react to a single software trigger and then issue a software trigger to
begin image acquisition. To do so, follow this sequence:
1. Access the camera's API and set the exposure time parameter for your desired exposure time.
2. Set the value of the camera's Acquisition Mode parameter to Single Frame.
3. Execute an Acquisition Start command. This prepares the camera to react to a software
trigger.
4. When you are ready to begin an image acquisition, execute a Trigger Software command.
5. Image acquisition will start and exposure will continue for the length of time you specified in
step 1.
6. At the end of the specified exposure time, readout and transmission of the acquired image will
take place.
7. At this point, the camera would ignore any additional software triggers. To acquire another
image, you must:
a. Repeat step 3 to prepare the camera to react to a software trigger.
b. Repeat step 4 to issue a software trigger.
If you use the single image acquisition process repeatedly, you must not begin acquisition of a new
image until transmission of the previously acquired image is complete.
You can set the exposure time and the Acquisition Mode parameter values from within your
application software by using the pylon API. You can also execute the Acquisition Start and Trigger
Software commands. The following code snippets illustrate using the API to set the parameter
values and execute the commands:
Camera.ExposureTimeRaw.SetValue( 200 );
Camera.AcquisitionMode.SetValue( AcquisitionMode_SingleFrame );
// prepare for image capture
Camera.AcquisitionStart.Execute( );
Camera.TriggerSoftware.Execute( );
// retrieve the captured image
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 2.2 on
page
40.
For more information about the camera's exposure time parameter, see Section 10.4 on
Basler pioneer
Image Acquisition Control
page 20
and Section 2.4 on
page 20
and Section 2.4 on
page
127.
117

Advertisement

Table of Contents
loading

Table of Contents