Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Quick OPC NuGet Program issue - by: eshaq.quadri

$
0
0
We have been running and using QuickOPC client in our C# program to read necessary tags and capture some updates.
We have few concerns related to the OPC lab C# NuGet component which we are using.

We have EasyUAClient client component attached to the DataChangeNotification event in C# program.
And when we track changes based on one tag using DataChangeNotification, we notice that periodically, it stops detecting the change of the tag and the program freezes.
We need to know what is missing to track that periodical change.
This program behavior of non-detection happens only after the when program runs successfully for few hours. Then in such case, once we restart program, everything works fine.
We are running OpcLabs.QuickOpc of version 5.63.246.

Please find code snippet as below:

var client_qc8 = new EasyUAClient();
IEasyUAClientConnectionMonitoring clientConnectionMonitoring = client_qc8.GetService<IEasyUAClientConnectionMonitoring>();
if (clientConnectionMonitoring is null)
{
Console.WriteLine("The client connection monitoring service is not available.");
WriteText($"The client connection monitoring service is not available.");
return;
}

clientConnectionMonitoring.ServerConditionChanged += clientConnectionMonitoring_OnServerConditionChanged;
client_qc8.DataChangeNotification += UA_MultiDataChange_Notification_qc08;
client_qc8.SubscribeMultipleMonitoredItems(new[]
{
new EasyUAMonitoredItemArguments(null,url, “sometag”,1000),

});

Viewing all articles
Browse latest Browse all 1794

Trending Articles