Data Objects

Data Object

The Data object provides access to Historian data and provides functionality to add, delete, and modify data samples in the Historian archives.

DataComments Object

The DataComments object contains a collection of comments attached to a specific DataValue record.

DataCriteria Object

The DataCriteria object sets the criteria for the retrieval of DataValue records into a DataRecordset Object. For example, you may want values between a certain start and end time.

DataFields Object

The DataFields object identifies which DataValue fields a DataRecordset query retrieves. For example, you may not want to retrieve comments with your data.

DataRecordset Object

The RecordSet contains a collection of DataValue records. Use the DataRecordset object to add, delete, or modify data samples.

To add, modify, or delete a DataValue record:
  1. Create a DataRecordset Object.
  2. Add, delete, or modify the DataValue Records.
  3. Perform a WriteRecordset operation to save the changes to the Historian archives.

DataValue Object

TheDataValue object contains data for a single tag and timestamp. It also contains a data quality and one or more comments attached to the specific data value. You can modify the Value, DataQuality, and Comments properties and commit them to the Historian server by using the WriteRecordset Method of the DataRecordsetObject. You cannot modify the timestamp.