Connect matlab to OPC UA server

25 views (last 30 days)
Giorgos Stefos
Giorgos Stefos on 2 Feb 2017
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:
Error using (line 625)
A low level communication error occurred.
Error in (line 409)
errorCode = clnt.fetchEndpoints;
Also when i' m gonna request server info with h=opcuaserverinfo('') , 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 (line 49)
[serverEndpoints, errorCode] = opc.internal.opcuadiscoverymex('getEndpointConfig', listOfServers(k).DiscoveryUrl);
Error in opcuaserverinfo (line 29)
s =;
Please help me, any ideas?
Reyhane Mokhtarname
Reyhane Mokhtarname on 24 Sep 2020
I have exactly the same problem.
Did you find any solution guys?

Sign in to comment.

Answers (3)

Felix Bertelsmeier
Felix Bertelsmeier on 29 Mar 2017
Hello Giorgos,
I have the same Problem, did you find a solution?
Best regards
  1 Comment
Giorgos Stefos
Giorgos Stefos on 29 Mar 2017
No , i didn't... unfortunatly

Sign in to comment.

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

Ali Fotouhi
Ali Fotouhi on 25 Nov 2019
I face the same probelm.
Error using (line 627)
A low level communication error occurred. Ensure that server host is reachable.
Error in (line 417)
errorCode = clnt.fetchEndpoints;
I would like to know if anyone has a found a solution for this problem.

Community Treasure Hunt

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

Start Hunting!