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

How can we run a script (MATLAB program) file that needs to run real time using OPAL-RT software and hardware?

3 comentarios

Rajani Metri
Rajani Metri el 15 de Nov. de 2021
Hello Yugeswar,
Have you got the Answer? I also want to know, "whether can we run only MATLAB script (m) file in OPAL-RT?
Please let me know.
Thank You.
Saba Hajhassan
Saba Hajhassan el 15 de Jul. de 2023
I also have the same problem, is there any update? I would appreicate it!
Saba Hajhassan
Saba Hajhassan el 19 de Jul. de 2023
DO you guys find any solution?

Iniciar sesión para comentar.

Respuestas (1)

Sreeram
Sreeram el 30 de En. de 2025

0 votos

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

Categorías

Preguntada:

el 16 de Mzo. de 2019

Respondida:

el 30 de En. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by