User`s manual

Image Acquisition Control AW00098504000
76 Basler ace Camera Link
7.2.5.3 Setting the Parameters Related to Hardware Acquisition
Start Triggering and Applying a Hardware Trigger Signal
Setting the Parameters Using Basler pylon and Applying a Signal
You can set all of the parameters needed to perform hardware acquisition start triggering from within
your application software by using the pylon API. The following code snippet illustrates using the
API to set the parameter values required to enable rising edge hardware acquisition start triggering
with line 1 as the trigger source:
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
// Configure the GPIO line as an input
Camera.LineSelector.SetValue( LineSelector_Line1 );
Camera.LineMode.SetValue( LineMode_Input );
// Set the source for the selected trigger to line 1
Camera.TriggerSource.SetValue ( TriggerSource_Line1 );
// Set the activation mode for the selected trigger to rising edge
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set the acquisition frame count
Camera.AcquisitionFrameCount.SetValue( 5 );
// Apply a rising edge of the externally generated electrical signal
// (ExASTrig signal) to line 1 on 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 page 19.
For more detailed information about the camera’s GPIO line, see Section 5.7 on page 35.
The acquisition start trigger delay will not operate if the Acquisition Start Trigger
Mode parameter is set to off or if you are using a software acquisition start trigger.