Getting Nodes from OPCUA server and read them

5 Ansichten (letzte 30 Tage)
Thisura Ranasinghe
Thisura Ranasinghe am 16 Feb. 2021
Beantwortet: Thomas Pursche am 19 Mär. 2025
I am trying to get the nodes from my opc server and when I am reading them back, I get a warning called, "The node id refers to a node that does not exist in the server address space". The Identifier type is GUID. I used opcuanode function to get the nodes. I am forever gratefull if someone could show me my mistake. Please have a look at the attached pictures for more informations. The steps are in respective to the pictures' numbers.

Antworten (1)

Thomas Pursche
Thomas Pursche am 19 Mär. 2025
Hi,
I got the same problem when I was trying to crawl automatically a server and gather all wanted information about the existing nodes.
The problem on my side was, that some OPCUA servers like Kepware allow the Node Identifier contain spaces, brackets and such stuff. With some of this elements Matlab is not happy overall so the error occurs. In your case maybe the curly brackets {} are the problem.
Best regards,
Thomas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by