.mex file (matlab executable) as Simulink Block?

3 ビュー (過去 30 日間)
Victor Bayer
Victor Bayer 2021 年 6 月 11 日
コメント済み: Sean de Wolski 2021 年 6 月 11 日
Hi,
i would like to run an RLAgent on a Raspberry. 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,
V

採用された回答

Walter Roberson
Walter Roberson 2021 年 6 月 11 日
You start by programming (or obtaining) an Intel x64 instruction set emulator on your ARM based RRaspberry Pi.
In other words, you do not use .mex* files with Raspberry Pi or Arduino.
Perhaps instead of generating mex (binary) it might be possible to generate C or C++ code.
  1 件のコメント
Sean de Wolski
Sean de Wolski 2021 年 6 月 11 日
Yes - see my answer to your other Question, Victor. Your best bet is to bake the agent into Simulink so the code generator regenerates it for the Pi a part of one process. If not, generate the standalone C|C++ code an compile it for the Pi.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by