
Image Acquisition Control
64 Basler aviator Camera Link
5.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 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 4 on page 45.
Setting the Parameters Using Direct Register Access
To set the trigger mode for the frame start trigger to on and to select a trigger source via direct
register access:
Set the value of the Trigger Mode Frame Start register to on.
Set the value of the Trigger Source Frame Start register to software, line 1, line 2, CC1, CC2,
or CC4.
If the trigger source is set to line 1, line 2, CC1, CC2, or CC4, set the value of the Trigger
Activation Frame Start register to rising edge or falling edge.
Comentarios a estos manuales