How to run a m-file in OPAL-RT?
5 ビュー (過去 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
2023 年 7 月 15 日
I also have the same problem, is there any update? I would appreicate it!
回答 (1 件)
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:
- Test Automation using the Python API: https://www.opal-rt.com/opal_tutorial/more-tutorials-2-test-automation-using-the-python-api/
- Using Python Script: https://opal-rt.atlassian.net/wiki/spaces/PRD/pages/143691049/Using+Python+Script
For further insights, a discussion on this approach is available here:
Thanks
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Call Python from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!