5.4.3.23 DurationInStateNonZero

The DurationInStateNonZero Aggregate defined in Table 71 returns the time Duration during the interval that the Variable was in the one state. The Simple Bounding Values for the interval are used to determine initial value (start time < end time) or ending value (if start time > end time). If one or more raw values are non-Good, they are not included in the Duration, and the Aggregate StatusCode is determined using the StatusCode Calculation (see 5.3) for time based Aggregates.

Duration is in milliseconds. Unless otherwise indicated, StatusCodes are Good, Calculated.

Table 71 – DurationInStateNonZero Aggregate summary
DurationInStateNonZero Aggregate Characteristics
TypeCalculated
Data TypeDuration
Use BoundsSimple
TimestampStartTime
StatusCode Calculations
Calculation MethodPercentTime
Partial

Set Sometimes

If an interval is not a complete interval

CalculatedSet Always
InterpolatedNot Set
RawNot Set
Multi ValueNot Set
StatusCode Common Special Cases
Before Start of DataBad_NoData
After End of DataBad_NoData
No Start BoundTreat the beginning value as Bad_NoData and compute the Aggregate
No End BoundTreat the ending value as Bad_NoData and compute the Aggregate
Bound Bad Use as value and compute the Aggregate as defined
Bound UncertainUse as value and compute the Aggregate as defined