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

5 次查看(过去 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!

请先登录,再进行评论。

回答(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