why embedded coder generated xyz_Disable function in my autogenerated code?

조회 수: 9 (최근 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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by