Skip to content

Table Statistics

Overview

Aggregates numerical data and calculates running statistics — sum, average, minimum, or maximum. It accumulates values across frames and outputs the results as two tables.

Table Statistics operates in one of two input modes depending on configuration:

  • Generic mode (default): receives a text label on the classification input and a number on the value input. Each unique label becomes a row in the output tables.
  • Pre-specified mode: when input names are listed in the Pre-specified inputs parameter, the node creates one numbered input port per name. No separate classification input is required, the port name itself serves as the row label.

Use Table Statistics when:

  • Tracking the total number of parts processed in a shift.
  • Calculating the average rate of defective items during quality control.
  • Monitoring minimum and maximum temperature readings from a sensor.

💡 Tip

Use the occurrences output to track how many data points have been collected for each input category.

Inputs

The available inputs depend on whether Pre-specified inputs is configured.

Generic mode (Pre-specified inputs is empty)

NameTypeDescription
classificationstringThe label identifying the data category.
valuenumberThe numerical value to aggregate.
resetanyResets all accumulated values and counts to zero.

Pre-specified mode

NameTypeDescription
[input_name]numberOne port per comma-separated name in the configuration.
resetanyResets all accumulated values and counts to zero.

Outputs

NameTypeDescription
statisticstableA table containing the calculated statistical values for each input.
occurrencestableA table containing the count of values received per input.

Both tables use Classification as the first column. The second column depends on the table:

TableStatistics methodColumn header
statisticssumΣ(X)
statisticsaverageΦ(X)
statisticsminmin(X)
statisticsmaxmax(X)
occurrences(all)# seen

Parameters

ParameterDefaultValid valuesTunable
Statistics methodsumsum, average, min, max
Pre-specified inputsstring (comma-separated list)
Enable automatic state resetfalseboolean

Statistics method

Determines the aggregation function applied to incoming data:

  • sum — running total of all received values.
  • average — incremental mean, updated with each new value.
  • min — smallest value seen so far.
  • max — largest value seen so far.

Pre-specified inputs

A comma-separated list of input names. When set, the node creates one number input port for each name instead of the generic classification + value pair.

Table Statistics input configuration
Defining input labels separated by commas. Will automatically create one input port per label.
Table Statistics result
Resulting input ports created from the configuration above.

Input names are normalized internally: spaces become underscores, non-alphanumeric characters are removed, and consecutive underscores are collapsed.

Enable automatic state reset

When enabled, the node automatically resets its accumulated state.

Example

Production tracking

Track the sum of "Good" and "Defective" items across an inspection shift.

Configuration:

  • Statistics method: sum
  • Pre-specified inputs: Good items, Defective items

After receiving 5 signals on "Good items" (values: 3, 1, 2, 4, 2) and 3 on "Defective items" (values: 1, 2, 1):

Table Statistics output showing a statistics table and an occurrences table side by side
Output after five 'Good items' signals (3, 1, 2, 4, 2) and three 'Defective items' signals (1, 2, 1) with Statistics method set to sum.

Reference:

  • Table — for displaying aggregated tables
  • Accumulator — for simpler value accumulation