why embedded coder generated xyz_Disable function in my autogenerated code?

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 Comments

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.
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.

Sign in to comment.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 16 Mar 2017

Commented:

on 1 Sep 2023

Community Treasure Hunt

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

Start Hunting!