Setting The Parameters Related To Hardware Frame Burst Start Triggering And Applying A Hardware Trigger Signal - Basler acA2040-55 User Manual

Basler ace
Table of Contents

Advertisement

AW00123409000
6.3.5.2
Setting the Parameters Related to Hardware Frame Burst
Start Triggering and Applying a Hardware Trigger Signal
When setting the TriggerMode parameter, make sure the camera is not acquiring
images. Otherwise, the camera might crash.
You can set all of the parameters needed to perform hardware frame burst start triggering from
within your application by using the Basler pylon API. The following code snippet illustrates using
the API to set the parameter values required to enable rising edge hardware frame burst start
triggering with, for example, Line 1 as the trigger source:
// Set the acquisition mode to Continuous (the acquisition mode must
// be set to Continuous when frame burst start triggering is on)
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_On );
// Set the source for the selected trigger
camera.TriggerSource.SetValue ( TriggerSource_Line1 );
// Set the activation mode for the selected trigger to rising edge
camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set the acquisition burst frame count
camera.AcquisitionBurstFrameCount.SetValue( 5 );
// Execute an acquisition start command to prepare for frame acquisition
camera.AcquisitionStart.Execute( );
while ( ! finished )
{
// Apply a rising edge of the externally generated electrical signal
// (ExFBTrig signal) to input line Line 1 on the camera
// Perform the required functions to parameterize the frame
// start trigger, to trigger 5 frame starts, and to retrieve 5 frames here
}
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 the pylon Viewer, see Section 3.1 on
Basler ace USB 3.0
Image Acquisition Control
page
61.
121

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2440-35Aca2040-120Aca2440-75

Table of Contents