Skip to content

How To: Generate a Frequency Divider#

Assume the following:

  • You want to acquire images from a Basler ace 2, boost, or dart IMX camera with a hardware trigger.
  • The trigger source frequency is higher than your targeted image acquisition.

Using the Counter feature, you can create a kind of frequency divider.

For example, consider that you want to acquire an image every 15th trigger.

First, set up counter 1:

  1. Assign the CounterEventSource parameter to the desired hardware line.
  2. Set the CounterResetSource parameter to ExposureActive.
  3. Set the CounterResetActivation parameter to RisingEdge. This resets the counter whenever exposure is started (exposure active rising edge).
  4. Set the CounterDuration parameter to a value of 15. Every trigger input increments the counter.

Setting Up Counter 1

Finally, set the trigger source of the Frame Start trigger to Counter 1 End.

Now, the counter generates a Counter End event once it reaches 15. The Counter End event triggers a frame start, and an image is being acquired.

Adjust Frame Start to Counter 1 End

Once the exposure is started, the Exposure Active signal rises, which resets the counter, and the cycle continues.

Back to Knowledge Articles