AnsweredAssumed Answered

Get Snapshot values with AF SDK .NET Programming

Question asked by SyedHussain on Dec 15, 2018
Latest reply on Dec 19, 2018 by rdavin

Hi All

 

We have a scheduler in VB.NET using AF SDK v4.0.30319. The objective is to fetch from PI Server the snapshot value and the associated timestamp of a tag. Used the following functions to fetch them.

myPIvalue = myPoint.CurrentValue.Value

myPItime = myPoint.CurrentValue.Timestamp

My code captures the current value and time stamp and stores in SQL DB table, but it does not match with PI-SMT values of same period, the value matches but not the timestamp.

But the associated time stamp for current value as seen in PI-SMT is wrong, it some times less than 3 or 4 hours or 1 hour etc.

 

Is the AF SDK function of currentvalue not correct?

Regards

Outcomes