フィルターのクリア

Change name of model_step?

3 ビュー (過去 30 日間)
Zsolt Szekely
Zsolt Szekely 2013 年 6 月 10 日
コメント済み: dharani k 2020 年 2 月 5 日
Is it possible to change the name of the generated model_step function for embedded coder? For example I wish to generate instead of model_step0(), model_step1(),model_step2() -> I want to have do_work0(),do_work1(),do_work2()...
The reason I need this is that, I already have an RTOS taking care of the different rates, but I don't want to go and change the name of the function call each time I change the name of my model. This way I will have always the same names generated for every model.

回答 (1 件)

Eshwar
Eshwar 2013 年 6 月 18 日
Which release of MATLAB are you on? You can go to Configuration Parameters -> Code Generation -> Interface, and then use the Configure Model Function window to specify a custom step or initialize function name.
This link that discusses function prototype control with embedded coder may be helpful
  1 件のコメント
dharani k
dharani k 2020 年 2 月 5 日
Hi Eshwar,
I'm using Matlab2015a ,Is it possible to change the name of the generated model_step function in embedded coder? For example I wish to generate instead of model_step()->model().
what changes i need to do so that my codes generates only single main function name as model().

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

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by