STS_add
Application Program Interface
2-417
C Interface
Syntax
STS_add(sts, value);
Parameters
STS_Handle sts;
/* statistics object handle */
LgInt
value;
/* new value to update statistics object */
Return Value
Void
Reentrant
no
Description
STS_add updates a custom STS object’s Total, Count, and Max fields
using the data value you provide.
For example, suppose your program passes 32-bit amplitude values to
STS_add. The Count field tracks how many times your program calls
STS_add for this STS object. The Total field tracks the total of all the
amplitudes. The Max field holds the largest value passed to this point.
The Statistics View analysis tool calculates the average amplitude.
You can count the occurrences of an event by passing a dummy value
(such as 0) to STS_add and watching the Count field.
You can view the statistics values with the Statistics View analysis tool by
enabling statistics in the DSP/BIOS
→
RTA Control Panel window and
choosing your custom STS object in the DSP/BIOS
→
Statistics View
window.
See Also
STS_delta
STS_reset
STS_set
TRC_disable
TRC_enable
STS_add
Update statistics using the provided value