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 rate meter.

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 speedometer, the name could be 'meters' or 'distance'.

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

Note that rates should be in seconds. If your rate is in another time, you should set the multiplier property of the LagCorrectedQuery.

Time BasisMultiplier
seconds1
minutes0.016666
hours0.00027