Interpolated retrieval - query 1
- Last UpdatedFeb 06, 2025
- 1 minute read
Two analog tags and a discrete tag are retrieved from the History table, using linear interpolation. The start and end times are offset to show interpolation of the SysTimeMin tag. The data points at all cycle boundaries are interpolated for the two analog tags, while the values returned for the discrete tag are stair-stepped.
SELECT DateTime, TagName, Value, wwInterpolationType FROM History
WHERE TagName IN ('SysTimeMin', 'ReactTemp', 'SysPulse')
AND DateTime >= '2005-04-11 12:02:30'
AND DateTime <= '2005-04-11 12:06:30'
AND wwRetrievalMode = 'Interpolated'
AND wwInterpolationType = 'Linear'
AND wwResolution = 60000
The results are:
|
DateTime |
TagName |
Value |
wwInterpolationType |
|---|---|---|---|
|
2005-04-11 12:02:30.000 |
SysTimeMin |
2.5 |
LINEAR |
|
2005-04-11 12:02:30.000 |
ReactTemp |
23.2 |
LINEAR |
|
2005-04-11 12:02:30.000 |
SysPulse |
1.0 |
STAIRSTEP |
|
2005-04-11 12:03:30.000 |
SysTimeMin |
3.5 |
LINEAR |
|
2005-04-11 12:03:30.000 |
ReactTemp |
139.96753 |
LINEAR |
|
2005-04-11 12:03:30.000 |
SysPulse |
0.0 |
STAIRSTEP |
|
2005-04-11 12:04:30.000 |
SysTimeMin |
4.5 |
LINEAR |
|
2005-04-11 12:04:30.000 |
ReactTemp |
111.49636 |
LINEAR |
|
2005-04-11 12:04:30.000 |
SysPulse |
1.0 |
STAIRSTEP |
|
2005-04-11 12:05:30.000 |
SysTimeMin |
5.5 |
LINEAR |
|
2005-04-11 12:05:30.000 |
ReactTemp |
17.00238 |
LINEAR |
|
2005-04-11 12:05:30.000 |
SysPulse |
0.0 |
STAIRSTEP |
|
2005-04-11 12:06:30.000 |
SysTimeMin |
6.5 |
LINEAR |
|
2005-04-11 12:06:30.000 |
ReactTemp |
168.99531 |
LINEAR |
|
2005-04-11 12:06:30.000 |
SysPulse |
1.0 |
STAIRSTEP |