CurrentMonitoredItemsCount

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
Patrick1337
Jr. Member
Jr. Member
Posts: 3
Joined: 18 Aug 2022, 09:56

CurrentMonitoredItemsCount

Post by Patrick1337 »

Hello,
in SessionDiagnostic I am reading CurrentMonitoredItems value of a session (e.g. ns=1;s=Session_3961317894.SessionDiagnostics.CurrentMonitoredItemsCount). The server has an upper limit of 1000 MonitoredItems per session. A server outputs here the value 4294967285. How can this phenomenon occur? If you delete or add monitored items, the value also changes. For example, after adding nodes, the value was once 72, and after removing them, it was 4294967285 again. Other devices with the same server do not behave this way. It feels like the value range is shifted.

BR
Patrick

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: CurrentMonitoredItemsCount

Post by Support Team »

Hi,

high value might be "-1". However, when using UaExpert "Server Diagnostic View" and connect to the CppDemoServer you can quite easily see Session and Subscription diagnostics. UaExpert->Menubar->Document->Add...->DocumentType->ServerDiagnosticView, the view itself subscribes to all diagnostic Nodes that are available (approx 107). The DataAccess-View creates its own extra Subscription and if you add remove nodes, you can see the CurrentMonitored Items increase/decrease.
Best regards
Unified Automation Support Team

Post Reply