nfilatov

How to get historical data from AFAttribute

Discussion created by nfilatov on Jul 14, 2011
Latest reply on Jul 14, 2011 by Ahmad Fattahi

Hello, I have an easy question.

 

I try to get data from attribute which datareference is PI Point.

 
AFAttribute attr = element.Atrributes["name"];
AFValue val = attr.GetValue(new AFTime(new DateTime(2011, 7, 10, 11, 0,0), attr.DefaultUOM);

 As result a have error: "Failed to retrieve events from server. [11201] PI-Redirector could not get archived value from foreign system" UOM=null Timestamp={10.07.2011 11:00:00} IsGood=false

 

What am I doing wrong?

Outcomes