How can I delete data from tags

455 Views Asked by At

I would like to delete data from chosen tag by time in Proficy Historian 5.5.

Can this be done using C# IHUAPI.cs?

1

There are 1 best solutions below

4
Artur On BEST ANSWER

No, it's not possible with IHUAPI.cs.

You could do this with Client Access API which is also available with Proficy Historian 5.5 and it's .NET based.

Here is a sample to delete data from a tag with a specific timestamp.

string[] tagnames = new string[1];
DateTime[] times = new DateTime[1];
ItemErrors errors;

tagnames[0] = "tagname";
DateTime timestamp = new DateTime(2016, 08, 01, 7, 36, 35);
times[0] = timestamp;
Connection.IData.Delete(tagnames, times, out errors);