Time average |
MATHDR32 -> Driver-specific functions -> Formulas -> Float formula -> Data reduction -> Time average |
Show all Hide all |
The data reduction Time average
allows the calculation of
the average of a variable. The possible average calculations
are:
Further parameters in the configuration are:
Press the button OK
to open a dialog where you can enter
the parameters for calculating the average:
Variable
Display of the event variable
Interval
duration
Parameters |
Description |
---|---|
Time-limited |
Calculation of average over time. |
Event triggered |
Average is calculated when an event variable changes. |
Time |
Entry of the numeric value for the corresponding time (real-time synchronous, i.e. entry 15 means 15, 30, 45, 0 etc.). |
Seconds, minutes, hours, days |
Selection of the time interval. |
Offset |
Delay for start and end of the average calculation. |
Output of the
result
Parameters |
Description |
---|---|
At the end of the interval |
The value is only provided at the end of the interval; until then, only the previous value is available. |
continuous |
The value is updated during each scan of the source variable. |
Initialization
at the start of the interval
Parameters |
Description |
---|---|
With existing value |
Value is based on previous value. |
with new value |
Value must be re-calculated. |
Calculate
as
Parameters |
Description |
---|---|
Simple sum |
Addition of the values. |
Integral over time |
Integration of the values over the time interval |
Scan the
source variable
Parameters |
Description |
---|---|
For each new value |
on change changes of the source variable are immediately considered for the calculation |
According to scanning rate |
The source values are only used in the defined
update rate for the calculation (button |
Event triggered |
Source value is used for the calculation when a change of edge occurs in the configured binary event variable. |
Button
|
Active if projecting was set to event-controlled. Selection of the binary event variable. |
Edge |
Active if projecting was set to event-controlled. Determination of the respective edge change for the acceptance of the source value (rising, falling). |