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
| Parameter | Type | Meaning |
|---|---|---|
| name | string | The name of the index in the final data-frame returned by Execute |
| query | string | An 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 Basis | Multiplier |
|---|---|
| seconds | 1 |
| minutes | 0.016666 |
| hours | 0.00027 |