MATLAB Answers

OPC UA - Connect MATLAB as Client to an OPC UA Server

18 views (last 30 days)
Suria Reddy
Suria Reddy on 26 Sep 2019
Answered: Timo Schmid on 6 Oct 2019
Hi,
I want to connect MATLAB as Client to an OPC UA Server . The OPC UA Server is hosted by the software FillControl by PRIAMUS.
I can connect the Server with the UaExpert Client from Unified Automation and read my measurement data from the nodes.
So far it works.
But now I want to use MATLAB as Client and read the measured data from FillControll Software directly via OPC UA into MATLAB.
How can i configure the server acces data in MATLAB?
  • Endpoint URL(s): opc.tcp://192.168.xx.xxx:xxxx/PRIAMUS
  • User: ******
  • Password: ********
Is it possible to make the connection in MATLAB or do I need an Local Discovery Service (LDS)?

  1 Comment

Suria Reddy
Suria Reddy on 26 Sep 2019
If I try to connect to the first server found on the localhost, I get the error message below.
sInfo = opcuaserverinfo('localhost');
uaClient = opcua(sInfo(1));
Warning: Some endpoints could not be retrieved:
PRIAMUS FillControl OpcUa Server: A low level communication error occurred. Ensure that server host is reachable.
> In opc.ua.getServerInfo (line 66)
In opcuaserverinfo (line 27)

Sign in to comment.

Answers (1)

Timo Schmid
Timo Schmid on 6 Oct 2019
I do have the exact same problem.
Please let me know as soon as you found a solution.

  0 Comments

Sign in to comment.

Tags

Products


Release

R2018b