Enable Spike Logic

About this task

When compression is enabled in the Historian archive, only the first instance in a series of data falling within a deadband range will be collected to the Historian archive. When that data is plotted using interpolation, false values are inserted into the chart to create a smooth trend between intervals in a given time period. In most cases, interpolation gives a reasonable portrayal of the actual data for a given time period.

Unfortunately, in the event of a spike in data values, an unrealistic set of samples is created when the data is plotted. Instead of showing the results of compression (the same values over a series of intervals), a rising or falling slope is created in the chart. This gives the impression that values for a given time stamp are higher or lower than they actually were. The figure below shows the difference between the raw data for a series of samples, and how the samples would be plotted if data compression were enabled, assuming all values between 10 and 20 are in the deadband range.

Spike logic monitors incoming data samples for spikes in a tag's values. If spike logic is enabled, a sample of equal value to the previously archived sample is inserted into the archive in front of the spike value. The time stamp of the inserted value is determined by your polling interval. If samples are collected at one-second intervals, the inserted sample's time stamp will be one second before the spike. This helps identify the spike, and retains a more accurate picture of the data leading up to it, as shown in the following image.

Procedure

  1. Access Historian Administrator.
  2. Select Collectors.
    A list of collectors appears.
  3. Select the collector to which you want to apply spike logic.
  4. Select Tags.
  5. Under Default Compression, in the Spike Logic Control field, select Enabled, and then select one of the following options:
    • Multiplier: Specifies how much larger a spike value must be than the deadband range before spike logic will be invoked. For example, if you enter 3, and the deadband percentage was set to 5%, spike logic will not be invoked until the difference between the spike value and the previously archived data point is 15% of the EGU range.
    • Interval: Specifies how many samples must have been compressed before the spike logic will be invoked. For example, if you enter 4, and 6 values have been compressed since the last archived data sample, spike logic will be invoked.
  6. Select Update.
    The spike logic is enabled.