Count

Counts events over time. Starting at a specified integer (preset), the function adds one at each event trigger.
Returns the current running total.

Count Inputs

Parameter Description

Event

Specifies the event on which to increment the counter.

This parameter needs to be a reference to any event with a timestamp, for example an AcquireImage function.

Max Value

Specifies the highest value allowed before the counter automatically resets itself to the minimum Preset value. (default = 9999999)

Reset

Forces the counter to reset to the Preset value.

0 = OFF (default)

The counter will be allowed to reach the Max Value before it resets.

1 = ON

The counter will reset at the next event trigger, even though the Max Value has not been reached.

Preset

First value at startup or value at reset. (default = 0)

Count Outputs

Returns

An integer, which is the Preset value plus the number of events that occurred since the last reset.