The OpcHdaRaw.xml sample script provides an example of how to obtain raw data from the DeltaV OPC History Server. In the following example, the goal is to read one day's raw data of the tag "FIC-101/PID1/SP.CV" before current time, with bounds. The data is to be read from the local DeltaV OPC History Server, with output to an XML file named FIC-101.XML.
The script file (OpcHdaRaw.xml) contains the following:
<DeltaVOpcHdaClient>
<Configuration>
<OutputFileName>FIC-101</OutputFileName>
</Configuration>
<Execution>
<Steps>
<Step>
<Interface>IOPCHDA_SyncRead</Interface>
<Method>ReadRaw</Method>
<ItemID>FIC-101/PID1/SP.CV</ItemID>
<StartTime>NOW - 1 D</StartTime>
<EndTime>NOW</EndTime>
<NumValues>1</NumValues>
<Bounds>TRUE</Bounds>
</Step>
</Steps>
</Execution>
</DeltaVOpcHdaClient>