Unable to connect to OPC server in Simulink-Industrial Communication Toolbox but can connect with matlab command
1 回表示 (過去 30 日間)
古いコメントを表示
(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
0 件のコメント
回答 (1 件)
Yatharth
2024 年 3 月 19 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!