Count

Counts events over time. Starting at a specified integer (preset) , 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 must be a reference to one of the following:

  • The Image data structure in cell A0, containing the AcquireImage function.
  • A cell containing an Event function.
  • A cell containing a Button 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.