Get Trace Statistics VI
- Updated2024-11-20
- 3 minute(s) read
Computes statistical data for a historical trace.

Inputs/Outputs
historical trace
—
historical trace is the historical trace passed into this VI.
time on (ETM)
—
time on is the amount of time for which data has a nonzero value in the trace. This value applies only to Boolean shared variables.
quality
—
quality is the ratio of time that the trace has had known values to the total time elapsed in the trace. This value applies only to Boolean shared variables.
max value
—
max value is the maximum value in the historical trace. This output ignores invalid points (value = NaN).
min value
—
min value is the minimum value in the historical trace. This output ignores invalid points (value = NaN).
average
—
average is the average for the values in the historical trace. This is a weighted average. Each point is weighted according to its time duration. average ignores time intervals with invalid points (value = NaN). The last point in the trace is not included in average because there is no known time interval associated with it.
standard deviation
—
standard deviation is the standard deviation for values in the historical trace. This is a weighted standard deviation. Each point is weighted according to its time duration. standard deviation ignores time intervals with invalid points (value = NaN). The last point in the trace is not included in the standard deviation because there is no known time interval associated with it.
# stops
—
# stops is the number of times the data value transitions from on to off in the trace. This value applies only to Boolean shared variables.
# starts
—
# starts is the number of times the data value transitions from off to on in the trace. This value applies only to Boolean shared variables. |
Get Trace Statistics Details
Statistics include max value, min value, average, and standard deviation. The statistics skip invalid input points where value = NaN. average and standard deviation are weighted according to the time duration of each valid input point. The last point in the historical trace is not included in average and standard deviation because the time interval associated with it is unknown.
historical trace
—
timestamps
—
data
—
time on (ETM)
—
# stops
—