Sum (with reset)

Signature

Accumulate_Reset_Sum(expression, reset)

Description

Calculates the sum over expression since the last reset up to the current sample.

Result

The sum over expression since the last reset up to the current sample.

Arguments

 

expression

The signal over which the sum shall be calculated.

reset

A reset signal. If it is true (or unequal to 0), the sum value will be reset. If it is false (or equals 0), the last sum value will be held.