Log to Disk Options in Hyper Historian

On the Tag Logging Options tab of the Hyper Historian Tag configuration form (shown below), the Log to Disk configuration in Hyper Historian allows you to specify if all samples collected by the Collector are to be logged or if the collector is to perform an advanced filter on the samples instead. Use filters to limit the volume of data sent to the logger. By limiting data in this way, you can improve efficiency by significantly cutting down on network traffic. If you choose an advanced filter such as the Moving Average, the Hyper Historian collector will perform the Moving Average calculation on the raw samples over the defined calculation period (defined when setting up the Collector for the tag). The result of the calculation will be logged at the end of each calculation period.

 

Tip: The Log to Disk option only determines which values get sent to the Logger, not whether they are saved to disk. Values are saved to disk only if the logger configuration is Disk based or – if it is a Memory Persistent Logger configuration – is configured to save values to a file. Even after a value is forwarded to the Logger, you can configure the tag so that additional filters (the Deadband and Swinging Door filters) are applied to subsequent incoming values. For more information, refer to the Data Logger in Hyper Historian topic.

 

You do have the option to send all collected values by selecting the All Samples option (which is the default). However, using the Log to Disk filter can save you network traffic, RAM, and disk space if you can still get the data you need with the calculations performed.

 

Log to Disk Options on the Hyper Historian Tag's Tag Logging Options Tab

 

 

Note: The Log to Disk field is not available if the Is Collected check box is empty on the Tag Properties tab. A tag's Log to Disk option is applied to data in the collector. If the tag's data is written directly to the logger, no Log to Disk options can be applied because the data never passes through the collector.

Before You Begin

When choosing a Log to Disk filter, keep in mind the following:

Log to Disk Options

From the Log to Disk pull-down list for Hyper Historian tags (described in the Hyper Historian Tags topic), you can choose one of the filters described below.

 

If you don’t want to filter samples before they are sent to the logger, select the All Samples option. As a result, all collected values are forwarded to the Logger. But if you do want to send calculated values (before the Deadband and/or Swinging Door filters are applied), select one of the options offered in the Log to Disk pull-down list:

Each is described below. Settings for each Log to Disk filter are described at the end of this topic, in the Settings for Each Log to Disk Filter Option section.

Minimum Values

If you want only a minimum value to be sent to the logger, you can choose one of the following Log to File filter options. Settings for each filter are described in the Settings for Each Log to Disk Filter Option section at the end of this topic.

Settings for Minimum, Moving Minimum, and Running Minimum

Maximum Values

If you want only a maximum value to be sent to the Logger, you can choose one of the following Log to File options. Settings for each filter are described in the Settings for Each Log to Disk Filter Option section at the end of this topic.

Settings for Maximum, Moving Maximum, and Running Maximum

Averages

If you want value averages to be sent to the Logger, you can choose one of the following Log to File options. Settings for each filter are described in the Settings for Each Log to Disk Filter Option section at the end of this topic.

Settings for Average, Moving Average, and Running Average

Standard Deviation

If you want the standard deviation for the calculation period to be sent to the Logger, choose Std. Dev. It is measured as the square root of the variance, or more formally the root mean square (RMS). It is calculated by finding the mean value of all samples, calculating each value's deviation, squaring the deviations, finding the mean of the square and then performing a square root. For a group {1, 4, 7} the mean is 4, the deviations are {3, 0, 3}, the squares of the deviation are {9, 0, 9}, and the standard deviation would be (18/3) ½ or (6) ½ or 2.45.

 

This option logs the standard deviation value of all samples collected for the tag. It calculates the standard deviation value over the specified calculation period if there is a check mark in the Override Calculation Period check box. If the Override Calculation Period check box is empty, the standard deviation value for all samples ever collected is logged each time a value is collected. Settings for this filter are described in the Settings for Each Log to Disk Filter Option section at the end of this topic.

 

Settings for Standard Deviation

 

Totalizer for Logging Counts

Choose Totalizer for data for which you want to collect a rate and log a current total. Think of it as a counter. The Totalizer gives you a count for a particular period, expressed in the units being collected. When a value is collected, the Totalizer updates the count then logs the count to the logger. Settings for this filter are described in the Settings for Each Log to Disk Filter Option section at the end of this topic.

 

Settings for Totalizer

 

The following examples illustrate uses for the Totalizer option:

The totalized count is independent of the sampling rate; for example, energy consumed is the same regardless of how often you query the power gauge. Although, if the source oscillates at about half of the sampling frequency or faster, the result it gives you may be inaccurate; for this reason, you should carefully consider the collection rate being used.

 

Most Recent on Time

If you want the last value received in the calculation period sent to the Logger, choose Most Recent On Time ‡. The last value collected during the calculation period is the value that is sent to the logger; all other values are discarded. You might use this if you need a second-by-second reading in memory but want to log a reading every 5 minutes.

 

Settings for Most Recent On Time (Using a Time Interval)

 

You can choose to log the most recent data value at a certain time interval or at specific dates and times. If you choose this second option under Recurrence type, the dialog changes slightly. In particular, the Recurrence details area will display options relevant to the unit of time that you select in the Recur every option. In the example below, the logger will log data at 11:00:00 AM, 11:30:00 AM, 6:00:00 PM, and 6:30:00 PM (local server time) every fifth day, starting at 12:14:33 PM (local server time) on Monday, June 25, 2012.

 

Sample Settings for Most Recent On Time (Specific Dates and Times)

 

No matter which recurrence type you select, however, you can select a starting date easily by clicking on the calendar icon to the right of the date and time. A calendar opens, where you can select the date on which you would like the tag logging filter to become active.

Settings for Each Log to Disk Filter Option

In this table, each Log to Disk filter's settings are identified. The settings for each Log to Disk filter are described below the table.

 

 

Settings:

Log to Disk Options:

Max

Min

Avg

Std Dev

Totalizer

Running Max

Running Min

Running Avg

Moving Max

Moving Min

Moving Avg

Most Recent on Time

Start Time

 

UTC Time

 

Percent Good

 

Treat Uncertain as Bad

 

Use Shutdown Marker

 

Override Calculation Period

 

Totalizer Units

 

 

 

 

 

         

 

Use Collection Period

 

 

 

 

 

 

Moving Avg Weight

 

 

 

 

 

 

 

 

   

 

Time Zone

 

 

 

 

 

 

 

 

     

Recurrence Type / Preview

 

 

 

 

 

 

 

 

 

 

 

Starting At

 

 

 

 

 

 

 

 

 

 

 

Recur Every

 

 

 

 

 

 

 

 

 

 

 

Recurrence Details

 

 

 

 

 

 

 

 

 

 

 

 

Settings for Log to Disk filters are described below: