Setting The Parameters Related To Software Frame Start Triggering And Applying A Software Trigger Signal - Basler Camera User Manual

Usb 3.0 cameras
Table of Contents

Advertisement

Image Acquisition Control
6.4.2.2
Setting the Parameters Related to Software Frame Start
Triggering and Applying a Software Trigger Signal
You can set all of the parameters needed to perform software frame start triggering from within your
application software by using the Basler pylon API. The following code snippet illustrates using the
API to set the parameter values and to execute the commands related to software frame start
triggering with the camera set for continuous frame acquisition mode. In this example, the trigger
mode for the frame burst start trigger will be set to off:
// 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
// software 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_Software);
// Set for the timed exposure mode
camera.ExposureMode.SetValue(ExposureMode_Timed);
// Set the exposure time
camera.ExposureTime.SetValue(3000.0);
// Execute an acquisition start command to prepare for frame acquisition
camera.AcquisitionStart.Execute( );
while ( ! finished )
{
// Execute a Trigger Software command to apply a frame start
// trigger signal to the camera
camera.TriggerSoftware.Execute( );
// Retrieve acquired frame here
}
camera.AcquisitionStop.Execute( );
// Note: as long as the Trigger Selector is set to FrameStart, executing
// a Trigger Software command will apply a software frame start trigger
// signal to the camera
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
104
AW00123402000
page
37.
Basler ace USB 3.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2000-165Aca2040-90Aca3800-14Aca4600-10

Table of Contents