User`s manual

AW00098504000 Image Acquisition Control
Basler ace Camera Link 81
7.3.1.3 Setting the Frame Start Trigger Mode and Related Parameters
Setting the Parameters Using Basler pylon
You can set the Trigger Mode and related parameter values from within your application software
by using the pylon API. If your settings make it necessary, you can also set the Trigger Source
parameter.
The following code snippet illustrates using the API to set the Trigger Mode parameter for the frame
start trigger to on and the Trigger Source parameter to CC1:
// 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 );
The following code snippet illustrates using the API to set the Trigger Mode parameter for the frame
start trigger to on and the Trigger Source parameter to line 1:
// Select the frame start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_FrameStart );
// 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 );
The following code snippet illustrates using the API to set the Trigger Mode parameter for the frame
start trigger to off and the Acquisition Frame Rate Abs parameter to 60:
// Select the frame start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_FrameStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_Off );
// Set the exposure time
Camera.ExposureTimeAbs.SetValue( 3000 );
// Enable the acquisition frame rate parameter and set the frame rate. (Enabling
// the acquisition frame rate parameter allows the camera to control the frame
// rate internally.
Camera.AcquisitionFrameRateEnable.SetValue( true );
Camera.AcquisitionFrameRateAbs.SetValue( 60.0 );
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.