Modifying parameters in compiled Simulink model on Raspberry Pi

1 回表示 (過去 30 日間)
Søren Ebbesen
Søren Ebbesen 2021 年 10 月 14 日
コメント済み: Søren Ebbesen 2021 年 10 月 24 日
Hi,
I would like to modify the value of a parameter (e.g. a constant) in my Simulink model while deployed on the target hardware, in my case a Raspberry Pi.
I assume I would need to get hold of the memory address of the specific parameter and then modify it by means of say Python or C. Is there a way to do this?
Regards,
Soeren

回答 (1 件)

Prasanth Sunkara
Prasanth Sunkara 2021 年 10 月 21 日
Hi Soeren,
Have you tried "Monitor & Tune workflow" (a.k.a External mode) with Raspberry Pi support package.
Simulink's External mode feature enables you to accelerate the process of parameter tuning by letting you change certain parameter values while the model is running on target hardware, without stopping the model.
For more info please see:
Hope this helps!
Thanks,
Prasanth
  1 件のコメント
Søren Ebbesen
Søren Ebbesen 2021 年 10 月 24 日
Hi Prasanth,
Thank you for your answer. I am familiar with External Mode. However, it's not quite what I'm looking for. I would like to deploy my model on a Raspberry Pi and then modify and/or observe certain parameters in the model without the use of Simulink. In some ways the same as External Mode but wihtout the need for Simulink. I imagine gaining access to paramters via e.g. Python by means of their individual memory addres.
Kind regards,
Soeren

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

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by