how to use .mex file in simulation for quanser qube servo?

2 ビュー (過去 30 日間)
Joshi Kumar V
Joshi Kumar V 2021 年 8 月 4 日
コメント済み: Joshi Kumar V 2021 年 8 月 4 日
Hi,
i would like to run an RLAgent on a Quanser Qube SERVO-2. Since the RLAgent included in the reinforcement learning toolbox is not supported by code generation it does not seem to be possible to upload that block as itself.
Instead i generated a .mex (matlab executable) file from the trained agent policy (.mat file). See:
How can i run the generated .mex file in my simulink model?
Thanks for any tips,
Best regards,
Joshi Kumar V

採用された回答

Walter Roberson
Walter Roberson 2021 年 8 月 4 日
There is no possibility that will work. MEX files require a full MATLAB runtime, either as an actual MATLAB or as the MCR (MATLAB Component Runtime.) MCR is only supported on platforms that MATLAB itself can run on -- which is currently only Intel x64 systems together with Mac M1 ARM-based systems.
If there is a way forward at all, you would have to generate standard C or C++ code instead of MEX .
  1 件のコメント
Joshi Kumar V
Joshi Kumar V 2021 年 8 月 4 日
I have generated C/C++ code using Microsoft Visio 2019. Could you please elaborate on how to proceed?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by