User`s manual
Image Acquisition Control
Basler aviator Camera Link 73
5.3.3.3 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 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. 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. 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 signals)