Handle Value Step Changes with Collector Data Compression
If you enable collector compression, the collector does not send values to the archiver any new input values if the value remains within its compression deadband. Occasionally, after several sample intervals inside the deadband, an input makes a rapid step change in value during a single sample interval. Since there have been no new data points recorded for several intervals, an additional sample is stored one interval before the step change with the last reported value to prevent this step change from being viewed as a slow ramp in value. This value marks the end of the steady-state, non-changing value period, and provides a data point from which to begin the step change in value.
BigDiff=abs(HI_EGU-LO_EGU)*(CompressionDeadbandPercent/(100.0*2.0))*4.0
If ( Collector Compression is Enabled )
If ( Elapsed time since LastReportedValue>=( SampleInterval * 5 ) )
If ( abs(CurrentValue-LastReportedValue) > BigDiff )
Write LastReportedValue,Timestamp=(CurrentTime-SampleInterval)
In the example above, if a new value was not reported for at least the last 4 sample intervals, and the new input value is at least 4 deltas away from the old value (where a single delta is equal to half of the compression deadband), then a marker value is written. Example: Value Spike with Collector Compression
For example, a collector reads a value X once per second, with a compression deadband of 1.0. If the value of X is 10.0 for a number of seconds starting at 0:00:00 and jumps to 20.0 at 0:00:10, the data samples read would be:
Time | X Value |
---|---|
0:00:00 | 10.0 (steady state value) |
0:00:01 | 10.0 |
0:00:02 | 10.0 |
0:00:03 | 10.0 |
0:00:04 | 10.0 |
0:00:05 | 10.0 |
0:00:06 | 10.0 |
0:00:07 | 10.0 |
0:00:08 | 10.0 |
0:00:09 | 10.0 |
0:00:10 | 20.0 (new value after step change) |
To increase efficiency, the straightforward compression would store only 2 of these 11 samples.
Time | X Value |
---|---|
0:00:00 | 10.0 (steady state value) |
0:00:10 | 20.0 (new value after step change) |
The addition of a marker value to the data being stored results in the following data values:
Time | X Value |
---|---|
0:00:00 | 10.0 (steady state value) |
0:00:09 | 10.0 (inserted Marker value) |
0:00:10 | 20.0 (new value after step change) |