Filters
Batch Average Filter
Description

Batch Average Filter

The function block provides the average of a set of stored values.

A new sample of the Input is added to a first-in, first-out buffer at each rising edge of the Sample input.

The number of samples in the buffer is defined by the Size parameter.

Following a reset, the output is the average of only those samples received after the reset.

Availability
  • Available only in the dw2xx & dw2xx-v2 series products
  • Requires library: Process Control (option -05)
  • Firmware versions 0x2027 and later
savvy-SFD Graphic displayAverageFilter
Graphic with Parameters displayAverageFilter

Parameters

Input Input, Read-write, Analog (signed 16-bit integer)
-327.67 % to 327.67 %

The current value of Input is added to a first-in, first-out buffer at each rising edge of the Sample input.

The Output is the average of samples in the buffer. The number of samples is defined by the Size parameter.


Sample Input, Read-write, Boolean (signed 16-bit integer)

A new sample of the Input is added to a first-in, first-out buffer at each rising edge of the Sample input.
0 = Low
1 = High
Reset Input, Read-write, Boolean (signed 16-bit integer)

Following a reset, the output is the average of only those samples received after the reset.
0 = Inactive
1 = Reset
Output Output, Read-only, Analog (signed 16-bit integer)
-327.67 % to 327.67 %

The average of all samples in the buffer following the last reset.
Size Internal Parameter, Read-write, Analog (signed 16-bit integer)
1 to 12

This is the sample size for the filter. A larger size provides more filtering and a slower response.