Connect matlab to OPC UA server

조회 수: 5 (최근 30일)
Giorgos Stefos
Giorgos Stefos 2017년 2월 2일
답변: Thomas Pursche 2022년 7월 18일
Hello, I have a problem connecting matlab with Codesys OPC UA server. I am running codesys opc ua server to a Beaglebon platfrom , and I have connected with my modem via ethernet. The server is running ok because i can connect to it with other OPC UA clients , but when it comes to matlab i am seeing the following error:
ua=opcua('192.168.1.6',51210);
connect(ua);
Error using opc.ua.Client/fetchEndpoints (line 625)
A low level communication error occurred.
Error in opc.ua.Client/connect (line 409)
errorCode = clnt.fetchEndpoints;
Also when i' m gonna request server info with h=opcuaserverinfo('192.168.1.6') , i am getting the error:
Error using opcuadiscoverymex
Requested 1x18446744073709551615 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater
than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for
more information.
Error in opc.ua.getServerInfo (line 49)
[serverEndpoints, errorCode] = opc.internal.opcuadiscoverymex('getEndpointConfig', listOfServers(k).DiscoveryUrl);
Error in opcuaserverinfo (line 29)
s = opc.ua.getServerInfo(hostName);
Please help me, any ideas?
  댓글 수: 3
Anwesh Reddy Gottu Mukkula
Anwesh Reddy Gottu Mukkula 2017년 5월 2일
I have the same problem. I am able connect to the OPC server if its located on the same machine. However, I am not able to connect to the OPC server if it is located on a different machine withing the network. Thanks. Any help would be appreciated !!
Reyhane Mokhtarname
Reyhane Mokhtarname 2020년 9월 24일
I have exactly the same problem.
Did you find any solution guys?

댓글을 달려면 로그인하십시오.

답변 (4개)

Felix Bertelsmeier
Felix Bertelsmeier 2017년 3월 29일
Hello Giorgos,
I have the same Problem, did you find a solution?
Best regards
Felix
  댓글 수: 1
Giorgos Stefos
Giorgos Stefos 2017년 3월 29일
No , i didn't... unfortunatly

댓글을 달려면 로그인하십시오.


Rodney Busquim e Silva
Rodney Busquim e Silva 2018년 10월 30일
Hello, I am having the same problem - did you guys find a solution ? Thanks.

Ali Fotouhi
Ali Fotouhi 2019년 11월 25일
Hello,
I face the same probelm.
connect(UaClient)
Error using opc.ua.Client/fetchEndpoints (line 627)
A low level communication error occurred. Ensure that server host is reachable.
Error in opc.ua.Client/connect (line 417)
errorCode = clnt.fetchEndpoints;
I would like to know if anyone has a found a solution for this problem.
Thanks.
  댓글 수: 1
Arno Godding
Arno Godding 2020년 1월 30일
This is not a solution!

댓글을 달려면 로그인하십시오.


Thomas Pursche
Thomas Pursche 2022년 7월 18일
Hello together,
I had a similar problem. It seems that maybe at the moment Matlab is only able to connect to OPC servers running on the same system. This means 'localhost' is running but an OPC server from another machine is not able to be contacted. The problem is maybe not only Matlab solitary but also some security settings.
I have tried to start Matlab under Admin user which helped in my case when using a connection to a database.
Best regards,
Thomas

카테고리

Help CenterFile Exchange에서 Server Connection and Browsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by