Lab Sampling Mode
Lab Sampling is designed to duplicate the way iFIX classic Historian (HTA/HTC) returned data. This sampling mode returns only collected values. Each collected value is repeated until the next collected value, resulting in a jagged step plot instead of a smooth curve.
Interpolated values are used in other calculation modes. Lab sampling is never used by calculation modes. Each sample has the following attributes:
- Timestamp - Lab sampling determines intervals and timestamps the same as interpolated retrieval.
- Value - Any value returned is an actual collected raw value; the data value is never interpolated.
- Data Quality - Lab sampling uses the same logic as interpolated sampling to determine percent good quality.
Retrieving lab sample values of an interval with GOOD data
lab
.
select timestamp, value, quality from
ihrawdata where samplingmode=lab and timestamp >= '29-Mar-2002 13:50' and
timestamp <= '29-Mar-2002 14:30' and tagname = tag1 and numberofsamples =
8
Timestamp | Value | Quality |
---|---|---|
29-Mar-200213:55:00.000 | 0.00 | 0.00 |
29-Mar-200214:00:00.000 | 22.70 | 100.00 |
29-Mar-200214:05:00.000 | 22.70 | 100.00 |
29-Mar-200214:10:00.000 | 12.50 | 100.00 |
29-Mar-200214:15:00.000 | 7.00 | 100.00 |
29-Mar-200214:20:00.000 | 7.00 | 100.00 |
29-Mar-200214:25:00.000 | 4.80 | 100.00 |
29-Mar-200214:30:00.000 | 4.80 | 100.00 |
The value is never anything other than a collected value. This differs from interpolated sampling. A plot of this data would look like a series of steps, rather than a smooth, interpolated curve.
Anticipated Usage: Since lab sampling returns real, collected values, it is more accurate when a sufficient number of raw samples are stored. Use interpolated sampling for highly compressed data. It is generally not useful with archive compression. Collector compression can be used to filter out non-changing values, but a high deadband reduces the number of raw samples and therefore reduces the accuracy of lab sampling.