Do OPC-UA blocks in simulink work with code generation?

5 ビュー (過去 30 日間)
Fredrik
Fredrik 2024 年 3 月 27 日
コメント済み: Fredrik 2024 年 3 月 28 日
If I set up my simulink controller to communicate through OPC-UA blocks can I then code-generate the controller and the opc-ua blocks into one deployable code package?
The goal is to deploy a controller that can run on its own in a container and also handle the OPC-UA communication.

採用された回答

Andreas Goser
Andreas Goser 2024 年 3 月 28 日
Not an expert here, but I found two new blocks as of R2024a here and here. Please confirm you a talking about those?
If yes, my viewpoint is they are not ready for code generation. My logic is that there is always a note about extended capabilities at the bottom of the page, see e.g. this Simulink block that says
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
It is probably a good idea if you share your use case with MathWorks so an enhancement reqest can be created or you get linked to it. Technical Support is a good contact to submit enhancement ideas.
  1 件のコメント
Fredrik
Fredrik 2024 年 3 月 28 日
Thank you. Yes those look like the right type of block I would use.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by