AnsweredAssumed Answered

Problem writing historical data to PI Data Archive using PIValues Object

Question asked by pauljohnson on Oct 2, 2018
Latest reply on Oct 2, 2018 by Nocodes79

Hi there I am having difficulty writing date values to the PI Data Archive. I am using PIValues to accumulate an array of data to write.  The timestamp is generated from the following code:

timeStamp = CDate(topsDevice.Data(rowCnt, _timeCol)).ToString("dd/MM/yyyy hhhh:mm:ss.fff")

 

PiValue is generated by:

 

 

piValues.Add(topsValue.TimeStamp, topsValue.PiValue, Nothing)

 

 

 

Data is then written to the archive by:

 

 

 

_piServer.PIPoints(pnt.Name).Data.UpdateValues(piValues, PISDK.DataMergeConstants.dmReplaceDuplicates)

 

The array contains 144 rows (1 value every 10 minutes).  The values contained in the array appear to be correct including the associated timestamp.  However the data is written incorrectly for some reason as  presented in the following ProcessBook trace:

 

 

Hoping you can assist.

 

Kind Regards

Paul J.

Outcomes