Using OPC UA read and write blocks within a Simu,ink Model

조회 수: 5 (최근 30일)
Paul
Paul 2024년 7월 27일
댓글: Paul 2024년 8월 19일
I'm using OPC UA Read and Write blocks within a Simulink model. I want to create a simulation app (by selecting 'Simulation App...' from the 'Save' dropdown menu. However, the creation fails because the OPC UA classes do not support code generation.
Are there any plans to make them compileable? Alternatively, is there a workaround? I've tried to create bespoke read and write OPC UA blocks, but run into the same problem.
Thanks,

답변 (1개)

Kautuk Raj
Kautuk Raj 2024년 8월 16일
I can reckon that you are having issues with the 'OPC UA Read' block and the 'Write' block in Simulink when creating a simulation app, due to the lack of code generation support.
For a detailed answer, you can refer to the following post on the MATLAB Answers community, which addresses the same issue: https://www.mathworks.com/matlabcentral/answers/2099686-do-opc-ua-blocks-in-simulink-work-with-code-generation
I trust this response will guide you towards resolving your query.
  댓글 수: 1
Paul
Paul 2024년 8월 19일
Thanks for confirming OPC UA Simulink blocks can't be compiled. Do you know if there's a workaround or if MathWorks intends to make this available in the future?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Unified Architecture에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by