Skip to content

How To: Synchronize a Light Source With a Basler ace 2 Camera#

Issue#

You trigger a Basler camera and use an output signal from the camera to trigger a light source, e.g., a flashlight.

The light source settings and camera exposure times are configured properly.

However, when working with very short exposure times (<100 µs) you may see that your resulting image is too dark. The effect will get stronger the shorter the exposure time.

The reason for that is often some delay / ramp up between trigger and full brightness of the light source itself.

The following signals show the issue more clearly:

Exposure Time without Timer Delay

So when triggering both devices at the same time, only a portion of the exposure time "sees" the full brightness of the light. This results in a too dark image.

Solution#

A possible solution would be to slightly delay the start of the camera exposure and wait for the light to reach the full intensity. With the Basler ace 2 this is now possible, e.g. like this:

  1. Connect your main trigger to line 1 input of the camera, and connect the light source trigger to line 2 output of the camera.
  2. Within the Digital I/O Control category of the pylon Viewer, set the LineSelector parameter to Line1 for the input line.
  3. Set Line2 as output line and use Timer2Activate as LineSource.
  4. In the Counter and Timer Control category, set the TimerSelector to Timer1, the TimerTriggerSource to Line1, and the TimerDelay to a value of 40 µs.
  5. Set the second TimerSelector to Timer2, the TimerTriggerSource also to Line1 but don't use a delay.
  6. Within the Acquisition Control category, set TriggerSelector to FrameStart and the TriggerSource to Timer1Active.

For all setting required in the pylon Viewer, refer to the image below.

pylon Settings for Exposure Trigger

The signals will now look like this:

Exposure Time with Timer Delay

With this setup, the full 60 µs exposure time will also get the full light intensity.

Info

The above diagrams are simplified and don't show all possible delays happening in the trigger path.

Back to Knowledge Articles