AmountLagQuery

This is a function of the LagCorrectedQuery class.

Description

This sets up the source of lag for the query. In this case, the query will usually return a single point, which is usually some form of counter or totaliser.

Parameters

ParameterTypeMeaning
namestringThe name of the index in the final data-frame returned by Execute
querystringAn AQL query that returns a single analogue channel of data

Returns

Nothing

Usage

The name normally describes what the point (returned from running the query) represents.

If the point is a odometer (reading distance), the name could be 'meters' or 'distance'.

If the point is a flowmeter, the name could me 'litres' or 'gallons'.