====Autosample==== The **Autosample** function of the [[histhelper|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... ^Parameter^Type^Description^ |Addresses|array|A list of strings, containing the addresses for each point to be resampled| |Reference|float|A reference sample rate. Queries with a higher window size will be //downsampled// and queries with a lower window size will be //upsampled//.| ===Example===