User`s manual

Acquisition Control AW00049313000
92 Basler runner
8.2.4.3 Setting the Line Start Trigger Parameters
You can set the Trigger Mode, Trigger Source, and Trigger Activation parameter values for the line
start trigger from within your application software by using the pylon API. If your settings make it
necessary, you can also select an exposure mode and set the exposure time.
The following code snippet illustrates using the API to set the line start trigger to mode = off, the line
rate to 20000, and the exposure time to 50 µs:
// Select the trigger you want to work with
Camera.TriggerSelector.SetValue( TriggerSelector_LineStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_Off );
// set a line rate
Camera.AcquisitionLineRateAbs.SetValue( 20000 );
// set the exposure time to 50 µs
Camera.ExposureTimeAbs.SetValue( 50.0 );
The following code snippet illustrates using the API to set the line start trigger to mode = on, to set
rising edge triggering on input line 2, to set the exposure mode to timed, and to set the exposure
time to 60 µs:
// Select the trigger you want to work with
Camera.TriggerSelector.SetValue( TriggerSelector_LineStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
// Set the source for the selected trigger
Camera.TriggerSource.SetValue ( TriggerSource_Line2 );
// Set the activation for the selected trigger
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// set for the timed exposure mode and set exposure time to 60 µs
Camera.ExposureMode.SetValue( ExposureMode_Timed );
Camera.ExposureTimeAbs.SetValue( 60.0 );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 17.