Autosample

The Autosample function of the HistoryFill class is used to dynamically Downsample or Upsample your data.

Only use this function on analogue data points, and only if you haven't performed sampling in your driver already (ie. by sending queries that already interpolate or resample the data).

Parameters

The function takes two parameters…

ParameterTypeDescription
AddressesarrayA list of strings, containing the addresses for each point to be resampled
ReferencefloatA reference sample rate. Queries with a higher window size will be downsampled and queries with a lower window size will be upsampled.

Example