This keyword allows a variable of type STRU_STAT (STRUCT_P) to be defined.
It is used by the statistics() function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
initdone |
I32 |
Flag to store initialization done |
min |
REAL |
Minimum value reached by the variable on which the statistic is performed |
max |
REAL |
Maximum value reached by the variable on which the statistic is performed |
average |
REAL |
Average value of the variable on which the statistic is performed |
ncount |
REAL |
Desired number of samples on which to do average |
actcount |
REAL |
Current number of samples (modulated on ncount) |
acttot |
REAL |
Totalizer sum of sample values |
Example declaration:
Example of use:
|