ReturnDataFields Parameter

The ReturnDataFields bitwise parameter specifies which data fields are returned in a query. Using it in a query returns data such as TimeStamp, and each field returns a Boolean value.

Each time-series data sample contains QVT (quality, value, and timestamp) values. If ReturnDataFields is not provided, then the default value of 0 is considered, and all QVT values are returned for each data sample. To return one of the data field properties, such as TimeStamp, use the TimeStamp option as shown in the table.

PropertiesDescriptionField value (Boolean)
All FieldsSpecifies that all data fields are returned in the query.0 (0000)
TimeStampThe time stamp of the collected sample or an interval time stamp. When specified in the query, returns the TimeStamp property. 1 (0001)
ValueThe collected value or sampled value; the data type of the value will be the same data type as the tag's raw data.2 (0010)
QualityWhen specified in the query, returns the Quality property. Each sample in Current Value and Raw query retrieval has a quality of:
  • Good (3)
  • Not Available (2)
  • Uncertain (1)
  • Bad (0)

Interpolated and Lab Retrieval express quality as "percent good".

4 (0100)