Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
(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

Risposte (1)

Yatharth
Yatharth il 19 Mar 2024
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.

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by