using OpcLabs.EasyOpc.DataAccess; using System; namespace ConsoleApplication1 { class Program { static void Main() { var client = new EasyDAClient(); Console.WriteLine("Reading item..."); //THIS WORKS Console.WriteLine(client.ReadItemValue("localhost", "FactoryTalk Gateway", "[BCS_L71]Cleaning")); Console.WriteLine("Subscribing..."); //THIS DO NOT WORK client.ItemChanged += Client_ItemChanged; int currentHandle = client.SubscribeItem("localhost", "FactoryTalk Gateway", "[BCS_L71]Cleaning", 1000, null); Console.ReadLine(); } public static void Client_ItemChanged(object sender, EasyDAItemChangedEventArgs e) { //Use the event on the underlying EasyDAClient to raise an event //parseable from elsewhere if (e.Vtq != null) { Console.WriteLine($"{e.Vtq.Timestamp} --> {e.ItemDescriptor.ItemId} is {e.Vtq.Value}"); } if (e.Exception != null) { Console.WriteLine($"{e.Exception.Message}"); } } } }