Methods (GetHistory)

When requesting history from ARDI, there are two key parameters that control the output.

The first is the Grain, which dictates the resolution of the data.

The other is the mode, which is used to change how the query works.

Note that discrete data doesn't obey the query mode.

The following are valid values for mode…

interp

This is the default mode for a history request. It means 'interpolated', which usually means that the value is the average across the time frame.

If you're asking for 600 samples of data across one hour of time, this will give you buckets of 10-second data, with each bucket containing the average of the values during that time.

min

This works like the query above, but each time window contains the minimum value seen during that time.

max

Like the min function, but each time window contains the maximum value seen during that time.

raw

This tells ARDI to retrieve the unfiltered, raw data from the data source. In this case, the grain parameter will be ignored.