Setting The Line Start Trigger Parameters - Basler GigE VISION CAMERAS User Manual

Gige vision cameras
Table of Contents

Advertisement

AW00118303000
There is also a second component to the start and end delays. This second component is the
debouncer setting for the input line. The debouncer setting for the input line must be added to the
base start and end delays shown in Table 8 to determine the total start delay and end delay.
For example, assume that you are using an raL2048-48gm camera and that you have set the line
start trigger mode to on. Also assume that you have selected input line 1 as the source signal for
the line start trigger and that the debouncer parameter for line 1 is set to 5 µs. In this case:
Total Start Delay = Start Delay Value from Table 8 + Debouncer Setting
Total Start Delay = 1.5 µs + 5 µs
Total Start Delay = 6.5 µs
Total End Delay = End Delay Value from Table 8 + Debouncer Setting
Total End Delay = 1.2 µs + 5 µs
Total End Delay = 6.2 µs
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
Basler racer GigE
Acquisition Control
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents