Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

"SubscribeDataChange" using the read function

More
25 Nov 2019 14:39 #8016 by Moien
Dear all,


I am reading more than 300 different variables with different node IDs from the OPC UA Server. My application is runing 24/7 and I am getting always new variables on the OPC UA Server. I used the "SubscribeDataChange" function (every 1000 milliseconds) to get the new values every second, otherwise the values won't be updated in my Delphi application.
Using "SubscribeDataChange" in a for loop (shown in the following) put lot of load on the CPU! is there any posibility to update all the variables at the same time, something like "Multipple DataChange"?

for I := NoV_DB100 to Length(OPCServerItemArray)-1 do begin
Name := OPCServerItemArray.Source + '.' + OPCServerItemArray.ItemName;
NodeID := 'nsu='+ nsu + ';s=Local Items.' + Name;
OPCUAClientRead.SubscribeDataChange(Url_String,NodeID, 1000);
end;


Best regards,
Moien

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.044 seconds