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:
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.