フィルターのクリア

Using Application Compiler for app including rtwbuild()

1 回表示 (過去 30 日間)
Cichx Maocki
Cichx Maocki 2020 年 3 月 5 日
回答済み: Stefanie Schwarz 2024 年 4 月 17 日
I would like to use the Application Compiler (Appdesigner -->Standalone Desktop App) on my MATLAB app. This app calls a .m file which is using the rtwbuild command to deploy a Simulink model to an arduino. The app works well when run in MATLAB, however after compilation I receive an error with rtwbuild:
Error using rtwbuild
The Matlab Path must have these directories for Simulink to function:
toolbox/simulink/blocks, toolbox/simulink/simulink
Matlab cannot continue. Please restore the path and restart Matlab.
The documentation says, that no Simulink functions are supported for the MATLAB Compiler (see here) and the rtwbuild function seems to be a Simulink function, since it is in the documentation in the category "Simulink Coder" (see here). However, I do not have the Simulink Coder Toolbox and the app was running in MATLAB, so I am not sure if rtwbuild is Simulink function.
To keep it short, my question is the following:
"Is it possible to use the Application Compiler on .m scripts including the rtwbuild command?"
Thank your for you help!
  1 件のコメント
Liam Vanderschaaf
Liam Vanderschaaf 2022 年 1 月 11 日
Hey Cichx
I'm having the same problem, did you ever find a solution to this?
Thanks

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

回答 (1 件)

Stefanie Schwarz
Stefanie Schwarz 2024 年 4 月 17 日
rtwbuild() is a Simulink Coder function. Simulink Coder is not supported by our compiler products as per:
While it is not possible to build Simulink models with our compiler products and deploy them to hardware at this time, our MATLAB support package for Arduino does support deployment. See the "Create Standalone Applications for Arduino Hardware" page:

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by