Counter Reset - Basler acA2040-55 User Manual

Basler ace
Table of Contents

Advertisement

AW00123409000

Counter Reset

Whenever the camera is powered off, the counter resets to 0.
During operation, you can reset the counter via the I/O IN line (Line 1), one of the GPIO lines (Line
3, Line 4) if configured for input or via software. You can also disable the ability to perform a reset
by setting the counter reset source to off. By default, the counter reset source is set to off.
To use the counter reset feature:
Set the counter reset source to Line1, Line 3, Line 4, Software, or Off.
Execute the command if using software as the counter reset source.
You can set the counter reset parameter values from within your application software by using the
Basler pylon API. The following code snippets illustrate using the API to configure and set the frame
counter reset and to execute a reset via software.
// Select counter 1 and assign Frame Start as event source
camera.CounterSelector.SetValue(CounterSelector_Counter1);
camera.CounterEventSource.SetValue(CounterEventSource_FrameStart);
// Select reset by signal applied to input line 1
camera.CounterResetSource.SetValue(CounterResetSource_Line1);
// Select reset by software
camera.CounterResetSource.SetValue(CounterResetSource_Software);
// Execute counter reset
camera.CounterReset.Execute();
// Disable reset
camera.CounterResetSource.SetValue(CounterResetSource_Off);
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 3.1 on
For more information about using line 1 as the source signal for a counter reset, see Section 5.7 on
page 72
and about using Line 3 and Line 4, see Section 5.9.3 on
Basler ace USB 3.0
page
page
80.
Features
61.
345

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2440-35Aca2040-120Aca2440-75

Table of Contents