why embedded coder generated xyz_Disable function in my autogenerated code?

11 ビュー (過去 30 日間)
Snehal Parmar
Snehal Parmar 2017 年 3 月 16 日
コメント済み: Varun Nayyar 2023 年 9 月 1 日
I have several set of *.mdl files in my project and each file has some subsystems, referenced models, logical blocks, etc...When I generate code, it creates xyz_Disable function for each every function in the autogenerated code. Why so? what is the use of this xyz_Disable function?
  2 件のコメント
Patipan
Patipan 2019 年 11 月 22 日
I have the same question and am wondering if this is relates to a particular property setting of the Enabled block, the model reference block, or the mode configuration parameters.
Varun Nayyar
Varun Nayyar 2023 年 9 月 1 日
Hey Did anyone of you resolved this issue. I am facing similar issue with disable function on simulink R2012b it is generating disable function which are never called.

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

回答 (1 件)

Patipan
Patipan 2019 年 11 月 22 日
To remove the <model>_Disable function, select "Remove disable function" to 'on'. See https://www.mathworks.com/help/ecoder/ref/remove-disable-method.html

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by