Unable to connect to OPC server in Simulink-Industrial Communication Toolbox but can connect with matlab command

(MATLAB R2022b)When I use matlab command, I can connect to the OPC server in the local computer
But when i use simulink to try to connect, then it failed, and reported “RPC server is unavailable”,what could I do to solve the problem

Answers (1)

Hi liang sen,
I acknowledge you are able to establish a connection to an OPC UA server utilizing MATLAB's "opcua" function. However, I understand you are encountering difficulties when attempting to achieve a similar connection through the OPC Read block in Simulink.
It's important to note that MATLAB R2022b does not extend support for OPC UA blocks within Simulink. Consequently, the OPC Read block that is presently available is designed exclusively for connections to OPC DA servers. This is the underlying reason for the challenges you are facing in connecting to an OPC UA server.
I hope this resolves your query.

Categories

Find more on Industrial Communication Toolbox in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 12 Mar 2024

Answered:

on 19 Mar 2024

Community Treasure Hunt

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

Start Hunting!