User`s manual

AW00098504000 Image Acquisition Control
Basler ace Camera Link 91
7.3.3.4 Setting the Parameters Related to Hardware Frame Start
Triggering and Applying a Hardware Trigger Signal
Setting the Parameters Using Basler pylon and Applying the Signal
You can set all of the parameters needed to perform hardware frame 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 and execute the
commands related to hardware frame start triggering with the camera set for the timed exposure
mode with rising edge triggering and CC1 as the trigger source. In this example, the trigger mode
for the acquisition start trigger will be set to off:
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// 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
// external 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_CC1 );
// Set the trigger activation mode to rising edge
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set for the timed exposure mode
Camera.ExposureMode.SetValue( ExposureMode_Timed );
// Set the exposure time
Camera.ExposureTimeAbs.SetValue( 3000 );
// Frame acquisition will start each time the externally generated
// frame start trigger signal (ExFSTrig signal)goes high
The following code snippet illustrates using the API to set the parameter values and execute the
commands related to hardware frame start triggering with the camera set for the trigger width
exposure mode with rising edge triggering, with line 1 as the trigger source, and with a trigger delay.
In this example, the trigger mode for the acquisition start trigger will be set to off:
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_Off );
// Disable the acquisition frame rate parameter (this will disable the camera’s