How to run a m-file in OPAL-RT?

조회 수: 8 (최근 30일)
YUGESWAR REDDY
YUGESWAR REDDY 2019년 3월 16일
답변: Sreeram 2025년 1월 30일
How can we run a script (MATLAB program) file that needs to run real time using OPAL-RT software and hardware?
  댓글 수: 3
Saba Hajhassan
Saba Hajhassan 2023년 7월 15일
I also have the same problem, is there any update? I would appreicate it!
Saba Hajhassan
Saba Hajhassan 2023년 7월 19일
DO you guys find any solution?

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

답변 (1개)

Sreeram
Sreeram 2025년 1월 30일
Hi Yugeswar,
I also was looking for this, but could not find any resources that suggest we can call M file in OPAL-RT. I worked around it by using Python as an intermediary. That is, by calling the M file in Python and integrating Python with OPAL-RT.
MATLAB functions may be called from python using MATLAB Engine API for Python. Detailed instructions can be found in the following documentation:
Once the MATLAB script is accessible in Python, it can be integrated with OPAL-RT. The following resources provide guidance on using Python with OPAL-RT:
For further insights, a discussion on this approach is available here:
Thanks

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by