OPC historical data access > OPCHDAClient.exe sample input scripts

OPCHDAClient.exe XML output

The XML output file uses a very simple schema that can be loaded into Internet Explorer or into a Microsoft Word document using the XML capabilities in MS Office.

Item tag has the following properties:

It contains a list of DataValue tags, each of which has the following properties:

Attribute tag has the following properties:

It contains a list of AttributeValue tags, each of which has a TimeStamp property.

The following is a partial output from the OpcHdaRaw.xml sample script in XML output file format.

 <DeltaVOpcHdaData>
  <Item ItemID="FIC-101/PID1/SP.CV">
    <DataValue TimeStamp="December 23 2004 8:30:00,192" Quality="192">12.345</DataValue>
    <DataValue TimeStamp="December 23 2004 8:40:00,192" Quality="192">12.346</DataValue>
    <DataValue TimeStamp="December 23 2004 8:50:00,192" Quality="192">12.347</DataValue>
    <DataValue TimeStamp="December 23 2004 9:00:00,192" Quality="192">12.348</DataValue>  </Item>
</DeltaVOpcHdaData>

The following is a partial output from the OpcHdaProcessed.sml sample script in XML output file format.

<DeltaVOpcHdaData>
  <Item ItemID="FIC-101/PID1/SP.CV" AggregateID="OPCHDA_INTERPOLATIVE">
    <DataValue TimeStamp="December 23 2004 8:30:00,192" Quality="192">12.345</DataValue>
    <DataValue TimeStamp="December 23 2004 8:40:00,192" Quality="192">12.446</DataValue>
    <DataValue TimeStamp="December 23 2004 8:50:00,192" Quality="192">12.547</DataValue>
    <DataValue TimeStamp="December 23 2004 9:00:00,192" Quality="192">12.648</DataValue>
  </Item>
</DeltaVOpcHdaData>

The following is the output from the OpcHdaAttr.xml sample script showing an XML output file of the current data type.

<DeltaVOpcHdaData>
  <Attribute ItemID="FIC-101/PID1/SP.CV" AttributeID="OPCHDA_DATA_TYPE">
    <AttributeValue TimeStamp="December 24 2004 8:30:00,192">5</AttributeValue>
      </Attribute>
</DeltaVOpcHdaData>